Skip to content

Commit

Permalink
Change to correct version since this has been backported
Browse files Browse the repository at this point in the history
Signed-off-by: Spencer G. Jones <[email protected]>
  • Loading branch information
mispencer committed Oct 24, 2024
1 parent 9498793 commit 6a524f1
Showing 1 changed file with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -166,11 +166,10 @@ public RestoreSnapshotRequest(StreamInput in) throws IOException {
if (in.getVersion().onOrAfter(Version.V_2_17_0)) {
sourceRemoteTranslogRepository = in.readOptionalString();
}
// TODO: change to V_2_18_0 once this is backported into that version
if (in.getVersion().onOrAfter(Version.CURRENT)) {
if (in.getVersion().onOrAfter(Version.V_2_18_0)) {
renameAliasPattern = in.readOptionalString();
}
if (in.getVersion().onOrAfter(Version.CURRENT)) {
if (in.getVersion().onOrAfter(Version.V_2_18_0)) {
renameAliasReplacement = in.readOptionalString();
}
}
Expand Down Expand Up @@ -200,11 +199,10 @@ public void writeTo(StreamOutput out) throws IOException {
if (out.getVersion().onOrAfter(Version.V_2_17_0)) {
out.writeOptionalString(sourceRemoteTranslogRepository);
}
// TODO: change to V_2_18_0 once this is backported into that version
if (out.getVersion().onOrAfter(Version.CURRENT)) {
if (out.getVersion().onOrAfter(Version.V_2_18_0)) {
out.writeOptionalString(renameAliasPattern);
}
if (out.getVersion().onOrAfter(Version.CURRENT)) {
if (out.getVersion().onOrAfter(Version.V_2_18_0)) {
out.writeOptionalString(renameAliasReplacement);
}
}
Expand Down

0 comments on commit 6a524f1

Please sign in to comment.