Skip to content

Commit

Permalink
Reduce BWC version for HotThreads.sort
Browse files Browse the repository at this point in the history
The sort by change has been merged in 7.x now and therefore
we should make 8.0 use the same BWC version.

Relates to elastic#79392 and elastic#79507
  • Loading branch information
Nikola Grcevski committed Oct 20, 2021
1 parent 97c62a7 commit f3a93d5
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public NodesHotThreadsRequest(StreamInput in) throws IOException {
type = HotThreads.ReportType.of(in.readString());
interval = in.readTimeValue();
snapshots = in.readInt();
if (in.getVersion().onOrAfter(Version.V_8_0_0)) {
if (in.getVersion().onOrAfter(Version.V_7_16_0)) {
sortOrder = HotThreads.SortOrder.of(in.readString());
}
}
Expand Down Expand Up @@ -118,7 +118,7 @@ public void writeTo(StreamOutput out) throws IOException {
out.writeString(type.getTypeValue());
out.writeTimeValue(interval);
out.writeInt(snapshots);
if (out.getVersion().onOrAfter(Version.V_8_0_0)) {
if (out.getVersion().onOrAfter(Version.V_7_16_0)) {
out.writeString(sortOrder.getOrderValue());
}
}
Expand Down

0 comments on commit f3a93d5

Please sign in to comment.