Skip to content

Commit 82479f1

Browse files
authored
Update ForceMergeAction's BWC constants (#51881)
Once #51819 is merged the `codec` parameter will be available in the 7.x branch. This updates the version constants so master (8.0) and 7.7 can talk to each other.
1 parent e0d57c5 commit 82479f1

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/ilm/ForceMergeAction.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public ForceMergeAction(int maxNumSegments, @Nullable String codec) {
6868

6969
public ForceMergeAction(StreamInput in) throws IOException {
7070
this.maxNumSegments = in.readVInt();
71-
if (in.getVersion().onOrAfter(Version.V_8_0_0)) {
71+
if (in.getVersion().onOrAfter(Version.V_7_7_0)) {
7272
this.codec = in.readOptionalString();
7373
} else {
7474
this.codec = null;
@@ -86,7 +86,7 @@ public String getCodec() {
8686
@Override
8787
public void writeTo(StreamOutput out) throws IOException {
8888
out.writeVInt(maxNumSegments);
89-
if (out.getVersion().onOrAfter(Version.V_8_0_0)) {
89+
if (out.getVersion().onOrAfter(Version.V_7_7_0)) {
9090
out.writeOptionalString(codec);
9191
}
9292
}

0 commit comments

Comments
 (0)