Skip to content

Commit 94962b3

Browse files
authored
Change version in serialization code to 7.4.0 (#44905)
1 parent 6901363 commit 94962b3

File tree

1 file changed

+2
-2
lines changed
  • x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ml/job/process/autodetect/state

1 file changed

+2
-2
lines changed

x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ml/job/process/autodetect/state/TimingStats.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ public TimingStats(StreamInput in) throws IOException {
128128
this.maxBucketProcessingTimeMs = in.readOptionalDouble();
129129
this.avgBucketProcessingTimeMs = in.readOptionalDouble();
130130
this.exponentialAvgBucketProcessingTimeMs = in.readOptionalDouble();
131-
if (in.getVersion().onOrAfter(Version.CURRENT)) { // TODO: Change to V_7_4_0 after backport
131+
if (in.getVersion().onOrAfter(Version.V_7_4_0)) {
132132
this.exponentialAvgCalculationContext = in.readOptionalWriteable(ExponentialAverageCalculationContext::new);
133133
} else {
134134
this.exponentialAvgCalculationContext = new ExponentialAverageCalculationContext();
@@ -223,7 +223,7 @@ public void writeTo(StreamOutput out) throws IOException {
223223
out.writeOptionalDouble(maxBucketProcessingTimeMs);
224224
out.writeOptionalDouble(avgBucketProcessingTimeMs);
225225
out.writeOptionalDouble(exponentialAvgBucketProcessingTimeMs);
226-
if (out.getVersion().onOrAfter(Version.CURRENT)) { // TODO: Change to V_7_4_0 after backport
226+
if (out.getVersion().onOrAfter(Version.V_7_4_0)) {
227227
out.writeOptionalWriteable(exponentialAvgCalculationContext);
228228
}
229229
}

0 commit comments

Comments
 (0)