Skip to content

Commit bb5cb55

Browse files
Correct the version post backport to 2.18 instead of current (#16127) (#16129)
(cherry picked from commit 7ba8b78) Signed-off-by: Gaurav Bafna <[email protected]> Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent 8f585d0 commit bb5cb55

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/src/main/java/org/opensearch/cluster/SnapshotsInProgress.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ private Entry(StreamInput in) throws IOException {
441441
} else {
442442
remoteStoreIndexShallowCopy = false;
443443
}
444-
if (in.getVersion().onOrAfter(Version.CURRENT)) {
444+
if (in.getVersion().onOrAfter(Version.V_2_18_0)) {
445445
remoteStoreIndexShallowCopyV2 = in.readBoolean();
446446
} else {
447447
remoteStoreIndexShallowCopyV2 = false;
@@ -925,7 +925,7 @@ public void writeTo(StreamOutput out) throws IOException {
925925
if (out.getVersion().onOrAfter(Version.V_2_9_0)) {
926926
out.writeBoolean(remoteStoreIndexShallowCopy);
927927
}
928-
if (out.getVersion().onOrAfter(Version.CURRENT)) {
928+
if (out.getVersion().onOrAfter(Version.V_2_18_0)) {
929929
out.writeBoolean(remoteStoreIndexShallowCopyV2);
930930
}
931931
}

0 commit comments

Comments
 (0)