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
Signed-off-by: Gaurav Bafna <[email protected]>
  • Loading branch information
gbbafna authored Sep 30, 2024
1 parent 1bddf2f commit 7ba8b78
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,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 @@ -886,7 +886,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 7ba8b78

Please sign in to comment.