File tree Expand file tree Collapse file tree
server/src/main/java/org/opensearch/index/seqno Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -712,7 +712,7 @@ public CheckpointState(StreamInput in) throws IOException {
712712 this .globalCheckpoint = in .readZLong ();
713713 this .inSync = in .readBoolean ();
714714 this .tracked = in .readBoolean ();
715- if (in .getVersion ().onOrAfter (Version .CURRENT )) {
715+ if (in .getVersion ().onOrAfter (Version .V_2_5_0 )) {
716716 this .replicated = in .readBoolean ();
717717 } else {
718718 this .replicated = true ;
@@ -725,7 +725,9 @@ public void writeTo(StreamOutput out) throws IOException {
725725 out .writeZLong (globalCheckpoint );
726726 out .writeBoolean (inSync );
727727 out .writeBoolean (tracked );
728- out .writeBoolean (replicated );
728+ if (out .getVersion ().onOrAfter (Version .V_2_5_0 )) {
729+ out .writeBoolean (replicated );
730+ }
729731 }
730732
731733 /**
You can’t perform that action at this time.
0 commit comments