File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
server/src/main/java/org/elasticsearch/cluster/node Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -261,7 +261,7 @@ public DiscoveryNode(StreamInput in) throws IOException {
261261 final String roleName = in .readString ();
262262 final String roleNameAbbreviation = in .readString ();
263263 final boolean canContainData ;
264- if (in .getVersion ().onOrAfter (Version .V_8_0_0 )) {
264+ if (in .getVersion ().onOrAfter (Version .V_7_10_0 )) {
265265 canContainData = in .readBoolean ();
266266 } else {
267267 canContainData = roleName .equals (DiscoveryNodeRole .DATA_ROLE .roleName ());
@@ -294,7 +294,7 @@ public void writeTo(StreamOutput out) throws IOException {
294294 final DiscoveryNodeRole compatibleRole = role .getCompatibilityRole (out .getVersion ());
295295 out .writeString (compatibleRole .roleName ());
296296 out .writeString (compatibleRole .roleNameAbbreviation ());
297- if (out .getVersion ().onOrAfter (Version .V_8_0_0 )) {
297+ if (out .getVersion ().onOrAfter (Version .V_7_10_0 )) {
298298 out .writeBoolean (compatibleRole .canContainData ());
299299 }
300300 }
You can’t perform that action at this time.
0 commit comments