Skip to content

Commit

Permalink
Update version in serialization of t-test agg usage stats (#54746)
Browse files Browse the repository at this point in the history
Update version in the t-test agg usage stats serialization
after backport to 7.8.0

Relates to #53692
  • Loading branch information
imotov authored Apr 6, 2020
1 parent e1fb09a commit f9ca4d9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ public NodeResponse(StreamInput in) throws IOException {
stringStatsUsage = 0;
topMetricsUsage = 0;
}
if (in.getVersion().onOrAfter(Version.V_8_0_0)) { // Will drop to 7.8.0 after backport
if (in.getVersion().onOrAfter(Version.V_7_8_0)) {
ttestUsage = in.readVLong();
} else {
ttestUsage = 0;
Expand All @@ -165,7 +165,7 @@ public void writeTo(StreamOutput out) throws IOException {
out.writeVLong(stringStatsUsage);
out.writeVLong(topMetricsUsage);
}
if (out.getVersion().onOrAfter(Version.V_8_0_0)) { // Will drop to 7.8.0 after backport
if (out.getVersion().onOrAfter(Version.V_7_8_0)) {
out.writeVLong(ttestUsage);
}
}
Expand Down

0 comments on commit f9ca4d9

Please sign in to comment.