Skip to content

Commit 96e9be7

Browse files
committed
set size = -1 for earlier versions
1 parent 6cca080 commit 96e9be7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,8 @@ public void readFrom(StreamInput in) throws IOException {
8484
deleted = in.readVLong();
8585
if (in.getVersion().onOrAfter(Version.V_7_0_0_alpha1)) {
8686
totalSizeInBytes = in.readVLong();
87+
} else {
88+
totalSizeInBytes = -1;
8789
}
8890
}
8991

0 commit comments

Comments
 (0)