We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 459233d commit 875bbfeCopy full SHA for 875bbfe
server/src/main/java/org/elasticsearch/indices/flush/SyncedFlushService.java
@@ -533,7 +533,7 @@ int numDocs() {
533
public void readFrom(StreamInput in) throws IOException {
534
super.readFrom(in);
535
commitId = new Engine.CommitId(in);
536
- if (in.getVersion().onOrAfter(Version.V_7_0_0_alpha1)) {
+ if (in.getVersion().onOrAfter(Version.V_6_3_0)) {
537
numDocs = in.readInt();
538
} else {
539
numDocs = UNKNOWN_NUM_DOCS;
@@ -544,7 +544,7 @@ public void readFrom(StreamInput in) throws IOException {
544
public void writeTo(StreamOutput out) throws IOException {
545
super.writeTo(out);
546
commitId.writeTo(out);
547
- if (out.getVersion().onOrAfter(Version.V_7_0_0_alpha1)) {
+ if (out.getVersion().onOrAfter(Version.V_6_3_0)) {
548
out.writeInt(numDocs);
549
}
550
0 commit comments