Skip to content

Commit f9ca4d9

Browse files
authored
Update version in serialization of t-test agg usage stats (#54746)
Update version in the t-test agg usage stats serialization after backport to 7.8.0 Relates to #53692
1 parent e1fb09a commit f9ca4d9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/analytics/action/AnalyticsStatsAction.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ public NodeResponse(StreamInput in) throws IOException {
147147
stringStatsUsage = 0;
148148
topMetricsUsage = 0;
149149
}
150-
if (in.getVersion().onOrAfter(Version.V_8_0_0)) { // Will drop to 7.8.0 after backport
150+
if (in.getVersion().onOrAfter(Version.V_7_8_0)) {
151151
ttestUsage = in.readVLong();
152152
} else {
153153
ttestUsage = 0;
@@ -165,7 +165,7 @@ public void writeTo(StreamOutput out) throws IOException {
165165
out.writeVLong(stringStatsUsage);
166166
out.writeVLong(topMetricsUsage);
167167
}
168-
if (out.getVersion().onOrAfter(Version.V_8_0_0)) { // Will drop to 7.8.0 after backport
168+
if (out.getVersion().onOrAfter(Version.V_7_8_0)) {
169169
out.writeVLong(ttestUsage);
170170
}
171171
}

0 commit comments

Comments
 (0)