Skip to content

Commit

Permalink
SnapshotInfo pinned timestamp version change to V_2_17_0 (opensearch-…
Browse files Browse the repository at this point in the history
…project#15616)

Signed-off-by: Anshu Agarwal <[email protected]>
Co-authored-by: Anshu Agarwal <[email protected]>
(cherry picked from commit c62626d)
  • Loading branch information
anshu1106 authored and Anshu Agarwal committed Sep 3, 2024
1 parent 89a7d75 commit 2247d71
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,7 @@ public SnapshotInfo(final StreamInput in) throws IOException {
if (in.getVersion().onOrAfter(Version.V_2_9_0)) {
remoteStoreIndexShallowCopy = in.readOptionalBoolean();
}
if (in.getVersion().onOrAfter(Version.CURRENT)) {
if (in.getVersion().onOrAfter(Version.V_2_17_0)) {
pinnedTimestamp = in.readVLong();
}
}
Expand Down Expand Up @@ -960,7 +960,7 @@ public void writeTo(final StreamOutput out) throws IOException {
if (out.getVersion().onOrAfter(Version.V_2_9_0)) {
out.writeOptionalBoolean(remoteStoreIndexShallowCopy);
}
if (out.getVersion().onOrAfter(Version.CURRENT)) {
if (out.getVersion().onOrAfter(Version.V_2_17_0)) {
out.writeVLong(pinnedTimestamp);
}
}
Expand Down

0 comments on commit 2247d71

Please sign in to comment.