Skip to content

Commit

Permalink
Change version to V_2_17_0 (opensearch-project#15596)
Browse files Browse the repository at this point in the history
Signed-off-by: Lakshya Taragi <[email protected]>
(cherry picked from commit 0f53bf9)
  • Loading branch information
ltaragi committed Sep 4, 2024
1 parent 01b38be commit bbcfb5f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1194,7 +1194,7 @@ public static void registerExceptions() {
org.opensearch.snapshots.TooManyShardsInSnapshotsStatusException.class,
org.opensearch.snapshots.TooManyShardsInSnapshotsStatusException::new,
175,
CURRENT
V_2_17_0
)
);
registerExceptionHandle(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public SnapshotsStatusRequest(StreamInput in) throws IOException {
repository = in.readString();
snapshots = in.readStringArray();
ignoreUnavailable = in.readBoolean();
if (in.getVersion().onOrAfter(Version.CURRENT)) {
if (in.getVersion().onOrAfter(Version.V_2_17_0)) {
indices = in.readOptionalStringArray();
}
}
Expand All @@ -101,7 +101,7 @@ public void writeTo(StreamOutput out) throws IOException {
out.writeString(repository);
out.writeStringArray(snapshots);
out.writeBoolean(ignoreUnavailable);
if (out.getVersion().onOrAfter(Version.CURRENT)) {
if (out.getVersion().onOrAfter(Version.V_2_17_0)) {
out.writeOptionalStringArray(indices);
}
}
Expand Down

0 comments on commit bbcfb5f

Please sign in to comment.