Skip to content

Commit

Permalink
Fix version check for BWC of Discovery Node serialization (opensearch…
Browse files Browse the repository at this point in the history
…-project#15620)

Signed-off-by: RS146BIJAY <[email protected]>
  • Loading branch information
RS146BIJAY authored Sep 4, 2024
1 parent a608fca commit f7b78d1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ public DiscoveryNode(StreamInput in) throws IOException {

@Override
public void writeTo(StreamOutput out) throws IOException {
if (out.getVersion().onOrAfter(Version.V_3_0_0)) {
if (out.getVersion().onOrAfter(Version.V_2_17_0)) {
writeToUtil(out, false);
} else {
writeToUtil(out, true);
Expand Down

0 comments on commit f7b78d1

Please sign in to comment.