Skip to content

Commit f38e957

Browse files
committed
make it for v7 for now
1 parent a381d98 commit f38e957

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/src/main/java/org/elasticsearch/index/shard/DocsStats.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public long getAverageSizeInBytes() {
7474
public void readFrom(StreamInput in) throws IOException {
7575
count = in.readVLong();
7676
deleted = in.readVLong();
77-
if (in.getVersion().onOrAfter(Version.V_6_1_0)) {
77+
if (in.getVersion().onOrAfter(Version.V_7_0_0_alpha1)) {
7878
averageSizeInBytes = in.readVLong();
7979
}
8080
}
@@ -83,7 +83,7 @@ public void readFrom(StreamInput in) throws IOException {
8383
public void writeTo(StreamOutput out) throws IOException {
8484
out.writeVLong(count);
8585
out.writeVLong(deleted);
86-
if (out.getVersion().onOrAfter(Version.V_6_1_0)) {
86+
if (out.getVersion().onOrAfter(Version.V_7_0_0_alpha1)) {
8787
out.writeVLong(averageSizeInBytes);
8888
}
8989
}

0 commit comments

Comments
 (0)