Skip to content

Commit e5cd4cd

Browse files
gbbafnaakolarkunnu
authored andcommitted
Correct the version post backport to 2.18 instead of current (opensearch-project#16127)
Signed-off-by: Gaurav Bafna <[email protected]>
1 parent d4a4a3c commit e5cd4cd

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@ private Entry(StreamInput in) throws IOException {
412412
} else {
413413
remoteStoreIndexShallowCopy = false;
414414
}
415-
if (in.getVersion().onOrAfter(Version.CURRENT)) {
415+
if (in.getVersion().onOrAfter(Version.V_2_18_0)) {
416416
remoteStoreIndexShallowCopyV2 = in.readBoolean();
417417
} else {
418418
remoteStoreIndexShallowCopyV2 = false;
@@ -886,7 +886,7 @@ public void writeTo(StreamOutput out) throws IOException {
886886
if (out.getVersion().onOrAfter(Version.V_2_9_0)) {
887887
out.writeBoolean(remoteStoreIndexShallowCopy);
888888
}
889-
if (out.getVersion().onOrAfter(Version.CURRENT)) {
889+
if (out.getVersion().onOrAfter(Version.V_2_18_0)) {
890890
out.writeBoolean(remoteStoreIndexShallowCopyV2);
891891
}
892892
}

0 commit comments

Comments
 (0)