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