File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed
server/src/main/java/org/opensearch
action/admin/cluster/snapshots/status Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 13
13
import static org .opensearch .OpenSearchException .OpenSearchExceptionHandle ;
14
14
import static org .opensearch .OpenSearchException .OpenSearchExceptionHandleRegistry .registerExceptionHandle ;
15
15
import static org .opensearch .OpenSearchException .UNKNOWN_VERSION_ADDED ;
16
- import static org .opensearch .Version .CURRENT ;
17
16
import static org .opensearch .Version .V_2_10_0 ;
18
17
import static org .opensearch .Version .V_2_17_0 ;
19
18
import static org .opensearch .Version .V_2_1_0 ;
@@ -1194,7 +1193,7 @@ public static void registerExceptions() {
1194
1193
org .opensearch .snapshots .TooManyShardsInSnapshotsStatusException .class ,
1195
1194
org .opensearch .snapshots .TooManyShardsInSnapshotsStatusException ::new ,
1196
1195
175 ,
1197
- CURRENT
1196
+ V_2_17_0
1198
1197
)
1199
1198
);
1200
1199
registerExceptionHandle (
Original file line number Diff line number Diff line change @@ -90,7 +90,7 @@ public SnapshotsStatusRequest(StreamInput in) throws IOException {
90
90
repository = in .readString ();
91
91
snapshots = in .readStringArray ();
92
92
ignoreUnavailable = in .readBoolean ();
93
- if (in .getVersion ().onOrAfter (Version .CURRENT )) {
93
+ if (in .getVersion ().onOrAfter (Version .V_2_17_0 )) {
94
94
indices = in .readOptionalStringArray ();
95
95
}
96
96
}
@@ -101,7 +101,7 @@ public void writeTo(StreamOutput out) throws IOException {
101
101
out .writeString (repository );
102
102
out .writeStringArray (snapshots );
103
103
out .writeBoolean (ignoreUnavailable );
104
- if (out .getVersion ().onOrAfter (Version .CURRENT )) {
104
+ if (out .getVersion ().onOrAfter (Version .V_2_17_0 )) {
105
105
out .writeOptionalStringArray (indices );
106
106
}
107
107
}
You can’t perform that action at this time.
0 commit comments