File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
server/src/main/java/org/elasticsearch/cluster/routing Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -339,12 +339,12 @@ public void writeTo(StreamOutput out) throws IOException {
339339 out .writeByte ((byte ) Reason .NODE_LEFT .ordinal ());
340340 } else if (reason .equals (Reason .UNPROMOTABLE_REPLICA ) && out .getTransportVersion ().before (VERSION_UNPROMOTABLE_REPLICA_ADDED )) {
341341 out .writeByte ((byte ) Reason .PRIMARY_FAILED .ordinal ());
342- } else if
343- ( reason . equals ( Reason . RESHARD_ADDED ) && out .getTransportVersion ().before (TransportVersions .UNASSIGENEDINFO_RESHARD_ADDED )) {
344- out .writeByte ((byte ) Reason .FORCED_EMPTY_PRIMARY .ordinal ());
345- } else {
346- out .writeByte ((byte ) reason .ordinal ());
347- }
342+ } else if ( reason . equals ( Reason . RESHARD_ADDED )
343+ && out .getTransportVersion ().before (TransportVersions .UNASSIGENEDINFO_RESHARD_ADDED )) {
344+ out .writeByte ((byte ) Reason .FORCED_EMPTY_PRIMARY .ordinal ());
345+ } else {
346+ out .writeByte ((byte ) reason .ordinal ());
347+ }
348348 out .writeLong (unassignedTimeMillis );
349349 // Do not serialize unassignedTimeNanos as System.nanoTime() cannot be compared across different JVMs
350350 out .writeBoolean (delayed );
You can’t perform that action at this time.
0 commit comments