Skip to content

Commit 1de5a31

Browse files
committed
[ML] Adjust BWC version following backport of #30125
1 parent 0592b68 commit 1de5a31

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/job/results/CategoryDefinition.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public CategoryDefinition(StreamInput in) throws IOException {
7878
regex = in.readString();
7979
maxMatchingLength = in.readLong();
8080
examples = new TreeSet<>(in.readList(StreamInput::readString));
81-
if (in.getVersion().onOrAfter(Version.V_7_0_0_alpha1)) {
81+
if (in.getVersion().onOrAfter(Version.V_6_4_0)) {
8282
grokPattern = in.readOptionalString();
8383
}
8484
}
@@ -91,7 +91,7 @@ public void writeTo(StreamOutput out) throws IOException {
9191
out.writeString(regex);
9292
out.writeLong(maxMatchingLength);
9393
out.writeStringList(new ArrayList<>(examples));
94-
if (out.getVersion().onOrAfter(Version.V_7_0_0_alpha1)) {
94+
if (out.getVersion().onOrAfter(Version.V_6_4_0)) {
9595
out.writeOptionalString(grokPattern);
9696
}
9797
}

0 commit comments

Comments
 (0)