|
@@ -82,7 +82,7 @@ public class DocsStats implements Streamable, ToXContentFragment {
|
|
public void readFrom(StreamInput in) throws IOException {
|
|
public void readFrom(StreamInput in) throws IOException {
|
|
count = in.readVLong();
|
|
count = in.readVLong();
|
|
deleted = in.readVLong();
|
|
deleted = in.readVLong();
|
|
- if (in.getVersion().onOrAfter(Version.V_7_0_0_alpha1)) {
|
|
|
|
|
|
+ if (in.getVersion().onOrAfter(Version.V_6_1_0)) {
|
|
totalSizeInBytes = in.readVLong();
|
|
totalSizeInBytes = in.readVLong();
|
|
} else {
|
|
} else {
|
|
totalSizeInBytes = -1;
|
|
totalSizeInBytes = -1;
|
|
@@ -93,7 +93,7 @@ public class DocsStats implements Streamable, ToXContentFragment {
|
|
public void writeTo(StreamOutput out) throws IOException {
|
|
public void writeTo(StreamOutput out) throws IOException {
|
|
out.writeVLong(count);
|
|
out.writeVLong(count);
|
|
out.writeVLong(deleted);
|
|
out.writeVLong(deleted);
|
|
- if (out.getVersion().onOrAfter(Version.V_7_0_0_alpha1)) {
|
|
|
|
|
|
+ if (out.getVersion().onOrAfter(Version.V_6_1_0)) {
|
|
out.writeVLong(totalSizeInBytes);
|
|
out.writeVLong(totalSizeInBytes);
|
|
}
|
|
}
|
|
}
|
|
}
|