|
@@ -356,7 +356,7 @@ public class SegmentsStats implements Writeable, ToXContentFragment {
|
|
|
private final long max;
|
|
|
|
|
|
FileStats(StreamInput in) throws IOException {
|
|
|
- if (in.getVersion().onOrAfter(Version.V_8_0_0)) {
|
|
|
+ if (in.getVersion().onOrAfter(Version.V_7_13_0)) {
|
|
|
this.ext = in.readString();
|
|
|
this.total = in.readVLong();
|
|
|
this.count = in.readVLong();
|
|
@@ -401,7 +401,7 @@ public class SegmentsStats implements Writeable, ToXContentFragment {
|
|
|
|
|
|
@Override
|
|
|
public void writeTo(StreamOutput out) throws IOException {
|
|
|
- if (out.getVersion().onOrAfter(Version.V_8_0_0)) {
|
|
|
+ if (out.getVersion().onOrAfter(Version.V_7_13_0)) {
|
|
|
out.writeString(ext);
|
|
|
out.writeVLong(total);
|
|
|
out.writeVLong(count);
|