diff --git a/rxlib/src/main/java/org/rx/io/WALFileStream.java b/rxlib/src/main/java/org/rx/io/WALFileStream.java index c021b632..fd024c7d 100644 --- a/rxlib/src/main/java/org/rx/io/WALFileStream.java +++ b/rxlib/src/main/java/org/rx/io/WALFileStream.java @@ -274,7 +274,6 @@ private void releaseReaderAndWriter() { private boolean ensureGrow() { return lock.writeInvoke(() -> { long length = file.getLength(); - if (length < growSize if (length < growSize || (meta != null && meta.logPos / (float) length > GROW_FACTOR)) { long resize = length + growSize; log.info("growSize {} {}->{}", getName(), length, resize);