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 <[email protected]>
  • Loading branch information
rajiv-kv authored and dk2k committed Oct 21, 2024
1 parent e3fa8f5 commit 5be37ce
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 5be37ce

Please sign in to comment.