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 <rishavsagar4b1@gmail.com>
  • Loading branch information
RS146BIJAY authored and dk2k committed Oct 17, 2024
1 parent 9c9502e commit d717748
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 d717748

Please sign in to comment.