Skip to content

Commit

Permalink
changing the version to 2.18 as term-check fallback is merged to 2.x
Browse files Browse the repository at this point in the history
Signed-off-by: Rajiv Kumar Vaidyanathan <[email protected]>
  • Loading branch information
rajiv-kv committed Sep 24, 2024
1 parent d6bda7d commit 29f0a42
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public GetTermVersionResponse(ClusterStateTermVersion clusterStateTermVersion, b
public GetTermVersionResponse(StreamInput in) throws IOException {
super(in);
this.clusterStateTermVersion = new ClusterStateTermVersion(in);
if (in.getVersion().onOrAfter(Version.V_3_0_0)) {
if (in.getVersion().onOrAfter(Version.V_2_18_0)) {
this.isStatePresentInRemote = in.readOptionalBoolean();
} else {
this.isStatePresentInRemote = false;
Expand All @@ -51,7 +51,7 @@ public GetTermVersionResponse(StreamInput in) throws IOException {
@Override
public void writeTo(StreamOutput out) throws IOException {
clusterStateTermVersion.writeTo(out);
if (out.getVersion().onOrAfter(Version.V_3_0_0)) {
if (out.getVersion().onOrAfter(Version.V_2_18_0)) {
out.writeOptionalBoolean(isStatePresentInRemote);
}
}
Expand Down

0 comments on commit 29f0a42

Please sign in to comment.