Skip to content

Commit 8c6e5ff

Browse files
committed
Fix
1 parent 9d98e11 commit 8c6e5ff

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

bookkeeper-server/src/main/java/org/apache/bookkeeper/bookie/storage/ldb/KeyValueStorageRocksDB.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -433,6 +433,7 @@ public void compact(byte[] firstKey, byte[] lastKey) throws IOException {
433433
public void compact() throws IOException {
434434
readLock.lock();
435435
try {
436+
throwIfClosed();
436437
final long start = System.currentTimeMillis();
437438
final int oriRocksDBFileCount = db.getLiveFilesMetaData().size();
438439
final long oriRocksDBSize = getRocksDBSize();

0 commit comments

Comments
 (0)