Skip to content

Commit 936cdb9

Browse files
authored
Change to correct version since this has been backported (#16472)
Signed-off-by: Spencer G. Jones <[email protected]>
1 parent 9498793 commit 936cdb9

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

server/src/main/java/org/opensearch/action/admin/cluster/snapshots/restore/RestoreSnapshotRequest.java

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -166,11 +166,10 @@ public RestoreSnapshotRequest(StreamInput in) throws IOException {
166166
if (in.getVersion().onOrAfter(Version.V_2_17_0)) {
167167
sourceRemoteTranslogRepository = in.readOptionalString();
168168
}
169-
// TODO: change to V_2_18_0 once this is backported into that version
170-
if (in.getVersion().onOrAfter(Version.CURRENT)) {
169+
if (in.getVersion().onOrAfter(Version.V_2_18_0)) {
171170
renameAliasPattern = in.readOptionalString();
172171
}
173-
if (in.getVersion().onOrAfter(Version.CURRENT)) {
172+
if (in.getVersion().onOrAfter(Version.V_2_18_0)) {
174173
renameAliasReplacement = in.readOptionalString();
175174
}
176175
}
@@ -200,11 +199,10 @@ public void writeTo(StreamOutput out) throws IOException {
200199
if (out.getVersion().onOrAfter(Version.V_2_17_0)) {
201200
out.writeOptionalString(sourceRemoteTranslogRepository);
202201
}
203-
// TODO: change to V_2_18_0 once this is backported into that version
204-
if (out.getVersion().onOrAfter(Version.CURRENT)) {
202+
if (out.getVersion().onOrAfter(Version.V_2_18_0)) {
205203
out.writeOptionalString(renameAliasPattern);
206204
}
207-
if (out.getVersion().onOrAfter(Version.CURRENT)) {
205+
if (out.getVersion().onOrAfter(Version.V_2_18_0)) {
208206
out.writeOptionalString(renameAliasReplacement);
209207
}
210208
}

0 commit comments

Comments
 (0)