We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 704a7f7 commit ba167f7Copy full SHA for ba167f7
core/src/main/java/org/elasticsearch/index/shard/DocsStats.java
@@ -82,7 +82,7 @@ public long getAverageSizeInBytes() {
82
public void readFrom(StreamInput in) throws IOException {
83
count = in.readVLong();
84
deleted = in.readVLong();
85
- if (in.getVersion().onOrAfter(Version.V_7_0_0_alpha1)) {
+ if (in.getVersion().onOrAfter(Version.V_6_1_0)) {
86
totalSizeInBytes = in.readVLong();
87
} else {
88
totalSizeInBytes = -1;
@@ -93,7 +93,7 @@ public void readFrom(StreamInput in) throws IOException {
93
public void writeTo(StreamOutput out) throws IOException {
94
out.writeVLong(count);
95
out.writeVLong(deleted);
96
- if (out.getVersion().onOrAfter(Version.V_7_0_0_alpha1)) {
+ if (out.getVersion().onOrAfter(Version.V_6_1_0)) {
97
out.writeVLong(totalSizeInBytes);
98
}
99
0 commit comments