Skip to content

Commit cb3fa9a

Browse files
committed
Fix translog validate param
1 parent daf729f commit cb3fa9a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ public Builder uncommittedSizeInBytes(long bytes) {
225225
}
226226

227227
public Builder earliestLastModifiedAge(long age) {
228-
if (earliestLastModifiedAge < 0) {
228+
if (age < 0) {
229229
throw new IllegalArgumentException("earliestLastModifiedAge must be >= 0");
230230
}
231231
this.earliestLastModifiedAge = age;

0 commit comments

Comments
 (0)