Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/main' into snapshot-hashed-prefix
Browse files Browse the repository at this point in the history
Signed-off-by: Ashish Singh <[email protected]>
  • Loading branch information
ashking94 committed Sep 1, 2024
2 parents 0dea663 + 71d122b commit 7c5b751
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ public ShardRouting(ShardId shardId, StreamInput in) throws IOException {
currentNodeId = in.readOptionalString();
relocatingNodeId = in.readOptionalString();
primary = in.readBoolean();
if (in.getVersion().onOrAfter(Version.V_3_0_0)) {
if (in.getVersion().onOrAfter(Version.V_2_17_0)) {
searchOnly = in.readBoolean();
} else {
searchOnly = false;
Expand Down Expand Up @@ -396,7 +396,7 @@ public void writeToThin(StreamOutput out) throws IOException {
out.writeOptionalString(currentNodeId);
out.writeOptionalString(relocatingNodeId);
out.writeBoolean(primary);
if (out.getVersion().onOrAfter(Version.V_3_0_0)) {
if (out.getVersion().onOrAfter(Version.V_2_17_0)) {
out.writeBoolean(searchOnly);
}
out.writeByte(state.value());
Expand Down

0 comments on commit 7c5b751

Please sign in to comment.