File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
server/src/main/java/org/elasticsearch/cluster/metadata Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -162,8 +162,7 @@ public static DesiredNode readFrom(StreamInput in) throws IOException {
162162 }
163163 final var memory = ByteSizeValue .readFrom (in );
164164 final var storage = ByteSizeValue .readFrom (in );
165- // if (in.getTransportVersion().before(TransportVersion.V_9_00_0)) {
166- if (true ) {
165+ if (in .getTransportVersion ().before (TransportVersions .ELASTICSEARCH_9_0 )) {
167166 final String version ;
168167 if (in .getTransportVersion ().onOrAfter (TransportVersions .V_8_13_0 )) {
169168 version = in .readOptionalString ();
@@ -187,8 +186,7 @@ public void writeTo(StreamOutput out) throws IOException {
187186 }
188187 memory .writeTo (out );
189188 storage .writeTo (out );
190- // if (out.getTransportVersion().before(TransportVersion.V_9_00_0)) {
191- if (true ) {
189+ if (out .getTransportVersion ().before (TransportVersions .ELASTICSEARCH_9_0 )) {
192190 if (out .getTransportVersion ().onOrAfter (TransportVersions .V_8_13_0 )) {
193191 out .writeOptionalString (null );
194192 } else {
You can’t perform that action at this time.
0 commit comments