remove 1.7 version check
This commit is contained in:
parent
68aacb7078
commit
cc97a4159e
|
@ -242,12 +242,10 @@ public class ImmutableShardRouting implements Streamable, Serializable, ShardRou
|
|||
state = ShardRoutingState.fromValue(in.readByte());
|
||||
|
||||
restoreSource = RestoreSource.readOptionalRestoreSource(in);
|
||||
if (in.getVersion().onOrAfter(Version.V_1_7_0)) {
|
||||
if (in.readBoolean()) {
|
||||
unassignedInfo = new UnassignedInfo(in);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void readFrom(StreamInput in) throws IOException {
|
||||
|
@ -286,7 +284,6 @@ public class ImmutableShardRouting implements Streamable, Serializable, ShardRou
|
|||
} else {
|
||||
out.writeBoolean(false);
|
||||
}
|
||||
if (out.getVersion().onOrAfter(Version.V_1_7_0)) {
|
||||
if (unassignedInfo != null) {
|
||||
out.writeBoolean(true);
|
||||
unassignedInfo.writeTo(out);
|
||||
|
@ -294,7 +291,6 @@ public class ImmutableShardRouting implements Streamable, Serializable, ShardRou
|
|||
out.writeBoolean(false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void writeTo(StreamOutput out) throws IOException {
|
||||
|
|
Loading…
Reference in New Issue