Skip to content

Commit

Permalink
Change the version to 2.18 as term-check fallback is merged to 2.x (o…
Browse files Browse the repository at this point in the history
…pensearch-project#16062)

Signed-off-by: Rajiv Kumar Vaidyanathan <rajivkv@amazon.com>
  • Loading branch information
rajiv-kv authored Sep 24, 2024
1 parent 6a29119 commit b3cc802
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 b3cc802

Please sign in to comment.