From 7d3e7ef3d82728da4abf3ae82007109c4f4c7424 Mon Sep 17 00:00:00 2001 From: Nhat Nguyen Date: Fri, 16 Feb 2018 10:50:53 -0500 Subject: [PATCH] Backported the translog files age stats to v6.3.0 Relates #28613 --- .../java/org/elasticsearch/index/translog/TranslogStats.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/src/main/java/org/elasticsearch/index/translog/TranslogStats.java b/server/src/main/java/org/elasticsearch/index/translog/TranslogStats.java index 14b5edbef33c1..c90e79eeba371 100644 --- a/server/src/main/java/org/elasticsearch/index/translog/TranslogStats.java +++ b/server/src/main/java/org/elasticsearch/index/translog/TranslogStats.java @@ -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(); } } @@ -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); } }