Skip to content

Commit

Permalink
Downgrade version check for ser/de of applyLevelAtTransportLayer flag…
Browse files Browse the repository at this point in the history
… in ClusterHealthRequest

Signed-off-by: SwethaGuptha <[email protected]>
  • Loading branch information
Swetha Guptha committed Sep 7, 2024
1 parent 66c7780 commit eea2ef8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ public ClusterHealthRequest(StreamInput in) throws IOException {
if (in.getVersion().onOrAfter(Version.V_2_6_0)) {
ensureNodeWeighedIn = in.readBoolean();
}
if (in.getVersion().onOrAfter(Version.V_3_0_0)) {
if (in.getVersion().onOrAfter(Version.V_2_17_0)) {
applyLevelAtTransportLayer = in.readBoolean();
}
}
Expand Down Expand Up @@ -153,7 +153,7 @@ public void writeTo(StreamOutput out) throws IOException {
if (out.getVersion().onOrAfter(Version.V_2_6_0)) {
out.writeBoolean(ensureNodeWeighedIn);
}
if (out.getVersion().onOrAfter(Version.V_3_0_0)) {
if (out.getVersion().onOrAfter(Version.V_2_17_0)) {
out.writeBoolean(applyLevelAtTransportLayer);
}
}
Expand Down

0 comments on commit eea2ef8

Please sign in to comment.