Skip to content

Commit c62626d

Browse files
anshu1106Anshu Agarwal
and
Anshu Agarwal
authored
SnapshotInfo pinned timestamp version change to V_2_17_0 (#15616)
Signed-off-by: Anshu Agarwal <anshukag@amazon.com> Co-authored-by: Anshu Agarwal <anshukag@amazon.com>
1 parent 12f6493 commit c62626d

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
@@ -473,7 +473,7 @@ public SnapshotInfo(final StreamInput in) throws IOException {
473473
if (in.getVersion().onOrAfter(Version.V_2_9_0)) {
474474
remoteStoreIndexShallowCopy = in.readOptionalBoolean();
475475
}
476-
if (in.getVersion().onOrAfter(Version.V_3_0_0)) {
476+
if (in.getVersion().onOrAfter(Version.V_2_17_0)) {
477477
pinnedTimestamp = in.readVLong();
478478
}
479479
}
@@ -940,7 +940,7 @@ public void writeTo(final StreamOutput out) throws IOException {
940940
if (out.getVersion().onOrAfter(Version.V_2_9_0)) {
941941
out.writeOptionalBoolean(remoteStoreIndexShallowCopy);
942942
}
943-
if (out.getVersion().onOrAfter(Version.V_3_0_0)) {
943+
if (out.getVersion().onOrAfter(Version.V_2_17_0)) {
944944
out.writeVLong(pinnedTimestamp);
945945
}
946946
}

0 commit comments

Comments
 (0)