Skip to content

Commit 06d9be6

Browse files
committed
Adjust BWC for recovery translog stats
Relates #43463
1 parent d15684d commit 06d9be6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/src/main/java/org/elasticsearch/indices/recovery/RecoveryState.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,7 @@ public Translog(StreamInput in) throws IOException {
471471
recovered = in.readVInt();
472472
total = in.readVInt();
473473
totalOnStart = in.readVInt();
474-
if (in.getVersion().onOrAfter(Version.V_8_0_0)) {
474+
if (in.getVersion().onOrAfter(Version.V_7_4_0)) {
475475
totalLocal = in.readVInt();
476476
}
477477
}
@@ -482,7 +482,7 @@ public void writeTo(StreamOutput out) throws IOException {
482482
out.writeVInt(recovered);
483483
out.writeVInt(total);
484484
out.writeVInt(totalOnStart);
485-
if (out.getVersion().onOrAfter(Version.V_8_0_0)) {
485+
if (out.getVersion().onOrAfter(Version.V_7_4_0)) {
486486
out.writeVInt(totalLocal);
487487
}
488488
}

0 commit comments

Comments
 (0)