|
|
@@ -44,7 +44,7 @@ public class DiscoveryStats implements Writeable, ToXContentFragment {
|
|
|
public DiscoveryStats(StreamInput in) throws IOException {
|
|
|
queueStats = in.readOptionalWriteable(PendingClusterStateStats::new);
|
|
|
|
|
|
- if (in.getVersion().onOrAfter(Version.V_7_0_0_alpha1)) {
|
|
|
+ if (in.getVersion().onOrAfter(Version.V_6_1_0)) {
|
|
|
publishStats = in.readOptionalWriteable(PublishClusterStateStats::new);
|
|
|
} else {
|
|
|
publishStats = null;
|
|
|
@@ -55,7 +55,7 @@ public class DiscoveryStats implements Writeable, ToXContentFragment {
|
|
|
public void writeTo(StreamOutput out) throws IOException {
|
|
|
out.writeOptionalWriteable(queueStats);
|
|
|
|
|
|
- if (out.getVersion().onOrAfter(Version.V_7_0_0_alpha1)) {
|
|
|
+ if (out.getVersion().onOrAfter(Version.V_6_1_0)) {
|
|
|
out.writeOptionalWriteable(publishStats);
|
|
|
}
|
|
|
}
|