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 {
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 }
You can’t perform that action at this time.
0 commit comments