Skip to content

Commit 9ba4c53

Browse files
anshu1106Anshu Agarwal
and
Anshu Agarwal
authored
SnapshotInfo pinned timestamp version change to V_2_17_0 (#15616) (#15619)
Signed-off-by: Anshu Agarwal <anshukag@amazon.com> Co-authored-by: Anshu Agarwal <anshukag@amazon.com> (cherry picked from commit c62626d)
1 parent 67eceaa commit 9ba4c53

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/src/main/java/org/opensearch/snapshots/SnapshotInfo.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,7 @@ public SnapshotInfo(final StreamInput in) throws IOException {
485485
if (in.getVersion().onOrAfter(Version.V_2_9_0)) {
486486
remoteStoreIndexShallowCopy = in.readOptionalBoolean();
487487
}
488-
if (in.getVersion().onOrAfter(Version.CURRENT)) {
488+
if (in.getVersion().onOrAfter(Version.V_2_17_0)) {
489489
pinnedTimestamp = in.readVLong();
490490
}
491491
}
@@ -960,7 +960,7 @@ public void writeTo(final StreamOutput out) throws IOException {
960960
if (out.getVersion().onOrAfter(Version.V_2_9_0)) {
961961
out.writeOptionalBoolean(remoteStoreIndexShallowCopy);
962962
}
963-
if (out.getVersion().onOrAfter(Version.CURRENT)) {
963+
if (out.getVersion().onOrAfter(Version.V_2_17_0)) {
964964
out.writeVLong(pinnedTimestamp);
965965
}
966966
}

0 commit comments

Comments
 (0)