diff --git a/src/main/java/io/openmessaging/storage/dledger/store/file/DLedgerMmapFileStore.java b/src/main/java/io/openmessaging/storage/dledger/store/file/DLedgerMmapFileStore.java index 7163512a..0f86f4b0 100644 --- a/src/main/java/io/openmessaging/storage/dledger/store/file/DLedgerMmapFileStore.java +++ b/src/main/java/io/openmessaging/storage/dledger/store/file/DLedgerMmapFileStore.java @@ -60,7 +60,7 @@ public class DLedgerMmapFileStore extends DLedgerStore { private ThreadLocal localIndexBuffer; private FlushDataService flushDataService; private CleanSpaceService cleanSpaceService; - private boolean isDiskFull = false; + private volatile boolean isDiskFull = false; private long lastCheckPointTimeMs = System.currentTimeMillis();