Fixes
This commit is contained in:
parent
d2650161fb
commit
73b5092785
@ -1108,7 +1108,7 @@ public class LLLocalKeyValueDatabase implements LLKeyValueDatabase {
|
||||
try {
|
||||
ensureOpen();
|
||||
var snapshotHandle = snapshotsHandles.get(snapshot.getSequenceNumber());
|
||||
ensureOwned(snapshotHandle);
|
||||
//ensureOwned(snapshotHandle);
|
||||
return snapshotHandle;
|
||||
} finally {
|
||||
closeLock.unlockRead(closeReadSnapLock);
|
||||
|
@ -8,7 +8,7 @@ public record RocksIterWithReadOpts(ReadOptions readOptions, RocksIteratorObj it
|
||||
|
||||
@Override
|
||||
public void close() {
|
||||
if (readOptions != null) {
|
||||
if (readOptions != null && readOptions.isAccessible()) {
|
||||
readOptions.close();
|
||||
}
|
||||
iter.close();
|
||||
|
Loading…
Reference in New Issue
Block a user