This commit is contained in:
Andrea Cavalli 2022-04-30 01:50:24 +02:00
parent e962ae6336
commit 654a62d7b8

View File

@ -13,6 +13,7 @@ import java.util.ArrayList;
import java.util.Objects;
import java.util.concurrent.locks.ReentrantLock;
import java.util.concurrent.locks.ReentrantReadWriteLock;
import java.util.concurrent.locks.StampedLock;
import org.rocksdb.AbstractComparator;
import org.rocksdb.ColumnFamilyDescriptor;
import org.rocksdb.ColumnFamilyHandle;
@ -77,7 +78,7 @@ public class HugePqEnv implements Closeable {
db.getName(),
cfh,
new CompositeMeterRegistry(),
new ReentrantReadWriteLock().readLock()
new StampedLock()
);
}
}