Skip to content

Commit 2f01129

Browse files
committed
Backported the translog files age stats to v6.3.0
Relates #28613
1 parent 0dd7902 commit 2f01129

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/src/main/java/org/elasticsearch/index/translog/TranslogStats.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ public void readFrom(StreamInput in) throws IOException {
124124
uncommittedOperations = numberOfOperations;
125125
uncommittedSizeInBytes = translogSizeInBytes;
126126
}
127-
if (in.getVersion().onOrAfter(Version.V_7_0_0_alpha1)) {
127+
if (in.getVersion().onOrAfter(Version.V_6_3_0)) {
128128
earliestLastModifiedAge = in.readVLong();
129129
}
130130
}
@@ -137,7 +137,7 @@ public void writeTo(StreamOutput out) throws IOException {
137137
out.writeVInt(uncommittedOperations);
138138
out.writeVLong(uncommittedSizeInBytes);
139139
}
140-
if (out.getVersion().onOrAfter(Version.V_7_0_0_alpha1)) {
140+
if (out.getVersion().onOrAfter(Version.V_6_3_0)) {
141141
out.writeVLong(earliestLastModifiedAge);
142142
}
143143
}

0 commit comments

Comments
 (0)