File tree 1 file changed +4
-6
lines changed
server/src/main/java/org/opensearch/action/admin/cluster/snapshots/restore
1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -172,11 +172,10 @@ public RestoreSnapshotRequest(StreamInput in) throws IOException {
172
172
if (in .getVersion ().onOrAfter (Version .V_2_17_0 )) {
173
173
sourceRemoteTranslogRepository = in .readOptionalString ();
174
174
}
175
- // TODO: change to V_2_18_0 once this is backported into that version
176
- if (in .getVersion ().onOrAfter (Version .CURRENT )) {
175
+ if (in .getVersion ().onOrAfter (Version .V_2_18_0 )) {
177
176
renameAliasPattern = in .readOptionalString ();
178
177
}
179
- if (in .getVersion ().onOrAfter (Version .CURRENT )) {
178
+ if (in .getVersion ().onOrAfter (Version .V_2_18_0 )) {
180
179
renameAliasReplacement = in .readOptionalString ();
181
180
}
182
181
}
@@ -215,11 +214,10 @@ public void writeTo(StreamOutput out) throws IOException {
215
214
if (out .getVersion ().onOrAfter (Version .V_2_17_0 )) {
216
215
out .writeOptionalString (sourceRemoteTranslogRepository );
217
216
}
218
- // TODO: change to V_2_18_0 once this is backported into that version
219
- if (out .getVersion ().onOrAfter (Version .CURRENT )) {
217
+ if (out .getVersion ().onOrAfter (Version .V_2_18_0 )) {
220
218
out .writeOptionalString (renameAliasPattern );
221
219
}
222
- if (out .getVersion ().onOrAfter (Version .CURRENT )) {
220
+ if (out .getVersion ().onOrAfter (Version .V_2_18_0 )) {
223
221
out .writeOptionalString (renameAliasReplacement );
224
222
}
225
223
}
You can’t perform that action at this time.
0 commit comments