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]>
  • Loading branch information
ltaragi authored Sep 3, 2024
1 parent 70ba5a1 commit 0f53bf9
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 @@ -1215,7 +1215,7 @@ public static void registerExceptions() {
org.opensearch.snapshots.TooManyShardsInSnapshotsStatusException.class,
org.opensearch.snapshots.TooManyShardsInSnapshotsStatusException::new,
175,
V_3_0_0
V_2_17_0
)
);
registerExceptionHandle(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,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 @@ -89,7 +89,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 0f53bf9

Please sign in to comment.