From 48d7a4ae6aa9c3d495abb94619f9f3c57a89621f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=84=9E?= Date: Sat, 7 Dec 2024 18:03:25 +0800 Subject: [PATCH] Update WALFileStream.java --- rxlib/src/main/java/org/rx/io/WALFileStream.java | 1 - 1 file changed, 1 deletion(-) 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);