File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed
server/src/main/java/org/opensearch/action/admin/cluster/snapshots/restore Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -166,11 +166,10 @@ public RestoreSnapshotRequest(StreamInput in) throws IOException {
166
166
if (in .getVersion ().onOrAfter (Version .V_2_17_0 )) {
167
167
sourceRemoteTranslogRepository = in .readOptionalString ();
168
168
}
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 )) {
171
170
renameAliasPattern = in .readOptionalString ();
172
171
}
173
- if (in .getVersion ().onOrAfter (Version .CURRENT )) {
172
+ if (in .getVersion ().onOrAfter (Version .V_2_18_0 )) {
174
173
renameAliasReplacement = in .readOptionalString ();
175
174
}
176
175
}
@@ -200,11 +199,10 @@ public void writeTo(StreamOutput out) throws IOException {
200
199
if (out .getVersion ().onOrAfter (Version .V_2_17_0 )) {
201
200
out .writeOptionalString (sourceRemoteTranslogRepository );
202
201
}
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 )) {
205
203
out .writeOptionalString (renameAliasPattern );
206
204
}
207
- if (out .getVersion ().onOrAfter (Version .CURRENT )) {
205
+ if (out .getVersion ().onOrAfter (Version .V_2_18_0 )) {
208
206
out .writeOptionalString (renameAliasReplacement );
209
207
}
210
208
}
You can’t perform that action at this time.
0 commit comments