@@ -804,7 +804,7 @@ public static ClusterState readFrom(StreamInput in, DiscoveryNode localNode) thr
804
804
Custom customIndexMetaData = in .readNamedWriteable (Custom .class );
805
805
builder .putCustom (customIndexMetaData .getWriteableName (), customIndexMetaData );
806
806
}
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 ;
808
808
return builder .build ();
809
809
}
810
810
@@ -830,7 +830,7 @@ public void writeTo(StreamOutput out) throws IOException {
830
830
out .writeNamedWriteable (cursor .value );
831
831
}
832
832
}
833
- if (out .getVersion ().onOrAfter (Version .V_7_0_0 )) {
833
+ if (out .getVersion ().onOrAfter (Version .V_6_7_0 )) {
834
834
out .writeVInt (minimumMasterNodesOnPublishingMaster );
835
835
}
836
836
}
@@ -880,7 +880,7 @@ private static class ClusterStateDiff implements Diff<ClusterState> {
880
880
metaData = MetaData .readDiffFrom (in );
881
881
blocks = ClusterBlocks .readDiffFrom (in );
882
882
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 ;
884
884
}
885
885
886
886
@ Override
@@ -894,7 +894,7 @@ public void writeTo(StreamOutput out) throws IOException {
894
894
metaData .writeTo (out );
895
895
blocks .writeTo (out );
896
896
customs .writeTo (out );
897
- if (out .getVersion ().onOrAfter (Version .V_7_0_0 )) {
897
+ if (out .getVersion ().onOrAfter (Version .V_6_7_0 )) {
898
898
out .writeVInt (minimumMasterNodesOnPublishingMaster );
899
899
}
900
900
}
0 commit comments