Skip to content

Commit

Permalink
Adjust BWC for recovery translog stats
Browse files Browse the repository at this point in the history
Relates #43463
  • Loading branch information
dnhatn committed Jul 23, 2019
1 parent d15684d commit 06d9be6
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -471,7 +471,7 @@ public Translog(StreamInput in) throws IOException {
recovered = in.readVInt();
total = in.readVInt();
totalOnStart = in.readVInt();
if (in.getVersion().onOrAfter(Version.V_8_0_0)) {
if (in.getVersion().onOrAfter(Version.V_7_4_0)) {
totalLocal = in.readVInt();
}
}
Expand All @@ -482,7 +482,7 @@ public void writeTo(StreamOutput out) throws IOException {
out.writeVInt(recovered);
out.writeVInt(total);
out.writeVInt(totalOnStart);
if (out.getVersion().onOrAfter(Version.V_8_0_0)) {
if (out.getVersion().onOrAfter(Version.V_7_4_0)) {
out.writeVInt(totalLocal);
}
}
Expand Down

0 comments on commit 06d9be6

Please sign in to comment.