Skip to content

Commit ba167f7

Browse files
committed
Enable Docstats with totalSizeInBytes for 6.1.0
Relates #27117
1 parent 704a7f7 commit ba167f7

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public long getAverageSizeInBytes() {
8282
public void readFrom(StreamInput in) throws IOException {
8383
count = in.readVLong();
8484
deleted = in.readVLong();
85-
if (in.getVersion().onOrAfter(Version.V_7_0_0_alpha1)) {
85+
if (in.getVersion().onOrAfter(Version.V_6_1_0)) {
8686
totalSizeInBytes = in.readVLong();
8787
} else {
8888
totalSizeInBytes = -1;
@@ -93,7 +93,7 @@ public void readFrom(StreamInput in) throws IOException {
9393
public void writeTo(StreamOutput out) throws IOException {
9494
out.writeVLong(count);
9595
out.writeVLong(deleted);
96-
if (out.getVersion().onOrAfter(Version.V_7_0_0_alpha1)) {
96+
if (out.getVersion().onOrAfter(Version.V_6_1_0)) {
9797
out.writeVLong(totalSizeInBytes);
9898
}
9999
}

0 commit comments

Comments
 (0)