Skip to content

Commit

Permalink
Backported the translog files age stats to v6.3.0
Browse files Browse the repository at this point in the history
Relates #28613
  • Loading branch information
dnhatn committed Feb 16, 2018
1 parent e0e4c73 commit 7d3e7ef
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ public void readFrom(StreamInput in) throws IOException {
uncommittedOperations = numberOfOperations;
uncommittedSizeInBytes = translogSizeInBytes;
}
if (in.getVersion().onOrAfter(Version.V_7_0_0_alpha1)) {
if (in.getVersion().onOrAfter(Version.V_6_3_0)) {
earliestLastModifiedAge = in.readVLong();
}
}
Expand All @@ -137,7 +137,7 @@ public void writeTo(StreamOutput out) throws IOException {
out.writeVInt(uncommittedOperations);
out.writeVLong(uncommittedSizeInBytes);
}
if (out.getVersion().onOrAfter(Version.V_7_0_0_alpha1)) {
if (out.getVersion().onOrAfter(Version.V_6_3_0)) {
out.writeVLong(earliestLastModifiedAge);
}
}
Expand Down

0 comments on commit 7d3e7ef

Please sign in to comment.