Skip to content

Commit c018647

Browse files
authored
Adjusting ML usage object serialization bwc version (#45874)
1 parent 596a6c2 commit c018647

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/MachineLearningFeatureSetUsage.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public MachineLearningFeatureSetUsage(StreamInput in) throws IOException {
5252
super(in);
5353
this.jobsUsage = in.readMap();
5454
this.datafeedsUsage = in.readMap();
55-
if (in.getVersion().onOrAfter(Version.V_8_0_0)) {
55+
if (in.getVersion().onOrAfter(Version.V_7_4_0)) {
5656
this.analyticsUsage = in.readMap();
5757
} else {
5858
this.analyticsUsage = Collections.emptyMap();
@@ -65,7 +65,7 @@ public void writeTo(StreamOutput out) throws IOException {
6565
super.writeTo(out);
6666
out.writeMap(jobsUsage);
6767
out.writeMap(datafeedsUsage);
68-
if (out.getVersion().onOrAfter(Version.V_8_0_0)) {
68+
if (out.getVersion().onOrAfter(Version.V_7_4_0)) {
6969
out.writeMap(analyticsUsage);
7070
}
7171
out.writeInt(nodeCount);

0 commit comments

Comments
 (0)