@@ -804,7 +804,7 @@ public static ClusterState readFrom(StreamInput in, DiscoveryNode localNode) thr
804804 Custom customIndexMetaData = in .readNamedWriteable (Custom .class );
805805 builder .putCustom (customIndexMetaData .getWriteableName (), customIndexMetaData );
806806 }
807- builder .minimumMasterNodesOnPublishingMaster = in .getVersion ().onOrAfter (Version .V_7_0_0 ) ? in .readVInt () : -1 ;
807+ builder .minimumMasterNodesOnPublishingMaster = in .getVersion ().onOrAfter (Version .V_6_7_0 ) ? in .readVInt () : -1 ;
808808 return builder .build ();
809809 }
810810
@@ -830,7 +830,7 @@ public void writeTo(StreamOutput out) throws IOException {
830830 out .writeNamedWriteable (cursor .value );
831831 }
832832 }
833- if (out .getVersion ().onOrAfter (Version .V_7_0_0 )) {
833+ if (out .getVersion ().onOrAfter (Version .V_6_7_0 )) {
834834 out .writeVInt (minimumMasterNodesOnPublishingMaster );
835835 }
836836 }
@@ -880,7 +880,7 @@ private static class ClusterStateDiff implements Diff<ClusterState> {
880880 metaData = MetaData .readDiffFrom (in );
881881 blocks = ClusterBlocks .readDiffFrom (in );
882882 customs = DiffableUtils .readImmutableOpenMapDiff (in , DiffableUtils .getStringKeySerializer (), CUSTOM_VALUE_SERIALIZER );
883- minimumMasterNodesOnPublishingMaster = in .getVersion ().onOrAfter (Version .V_7_0_0 ) ? in .readVInt () : -1 ;
883+ minimumMasterNodesOnPublishingMaster = in .getVersion ().onOrAfter (Version .V_6_7_0 ) ? in .readVInt () : -1 ;
884884 }
885885
886886 @ Override
@@ -894,7 +894,7 @@ public void writeTo(StreamOutput out) throws IOException {
894894 metaData .writeTo (out );
895895 blocks .writeTo (out );
896896 customs .writeTo (out );
897- if (out .getVersion ().onOrAfter (Version .V_7_0_0 )) {
897+ if (out .getVersion ().onOrAfter (Version .V_6_7_0 )) {
898898 out .writeVInt (minimumMasterNodesOnPublishingMaster );
899899 }
900900 }
0 commit comments