parent
25dd64497b
commit
11ea588aee
|
@ -138,7 +138,7 @@ public class ClusterBlock implements Streamable, ToXContent {
|
|||
retryable = in.readBoolean();
|
||||
disableStatePersistence = in.readBoolean();
|
||||
status = RestStatus.readFrom(in);
|
||||
if (in.getVersion().onOrAfter(Version.V_6_0_0_alpha1_UNRELEASED)) {
|
||||
if (in.getVersion().onOrAfter(Version.V_5_5_0_UNRELEASED)) {
|
||||
allowReleaseResources = in.readBoolean();
|
||||
} else {
|
||||
allowReleaseResources = false;
|
||||
|
@ -156,7 +156,7 @@ public class ClusterBlock implements Streamable, ToXContent {
|
|||
out.writeBoolean(retryable);
|
||||
out.writeBoolean(disableStatePersistence);
|
||||
RestStatus.writeTo(out, status);
|
||||
if (out.getVersion().onOrAfter(Version.V_6_0_0_alpha1_UNRELEASED)) {
|
||||
if (out.getVersion().onOrAfter(Version.V_5_5_0_UNRELEASED)) {
|
||||
out.writeBoolean(allowReleaseResources);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue