Skip to content

Commit c007a42

Browse files
authored
[ML] adjusting post backport (#36222)
1 parent d24b40f commit c007a42

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/ml/datafeed/DatafeedConfig.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ public DatafeedConfig(StreamInput in) throws IOException {
256256
} else {
257257
this.types = null;
258258
}
259-
if (in.getVersion().before(Version.CURRENT)) {
259+
if (in.getVersion().before(Version.V_6_6_0)) {
260260
this.query = QUERY_TRANSFORMER.toMap(in.readNamedWriteable(QueryBuilder.class));
261261
this.aggregations = AGG_TRANSFORMER.toMap(in.readOptionalWriteable(AggregatorFactories.Builder::new));
262262
} else {
@@ -380,7 +380,7 @@ public void writeTo(StreamOutput out) throws IOException {
380380
} else {
381381
out.writeBoolean(false);
382382
}
383-
if (out.getVersion().before(Version.CURRENT)) {
383+
if (out.getVersion().before(Version.V_6_6_0)) {
384384
out.writeNamedWriteable(getParsedQuery());
385385
out.writeOptionalWriteable(getParsedAggregations());
386386
} else {

0 commit comments

Comments
 (0)