Skip to content

Commit

Permalink
Correct the version post backport to 2.18 instead of current (#16127) (
Browse files Browse the repository at this point in the history
…#16129)

(cherry picked from commit 7ba8b78)

Signed-off-by: Gaurav Bafna <[email protected]>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
1 parent 8f585d0 commit bb5cb55
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ private Entry(StreamInput in) throws IOException {
} else {
remoteStoreIndexShallowCopy = false;
}
if (in.getVersion().onOrAfter(Version.CURRENT)) {
if (in.getVersion().onOrAfter(Version.V_2_18_0)) {
remoteStoreIndexShallowCopyV2 = in.readBoolean();
} else {
remoteStoreIndexShallowCopyV2 = false;
Expand Down Expand Up @@ -925,7 +925,7 @@ public void writeTo(StreamOutput out) throws IOException {
if (out.getVersion().onOrAfter(Version.V_2_9_0)) {
out.writeBoolean(remoteStoreIndexShallowCopy);
}
if (out.getVersion().onOrAfter(Version.CURRENT)) {
if (out.getVersion().onOrAfter(Version.V_2_18_0)) {
out.writeBoolean(remoteStoreIndexShallowCopyV2);
}
}
Expand Down

0 comments on commit bb5cb55

Please sign in to comment.