This commit is contained in:
Andrea Cavalli 2022-06-20 00:32:56 +02:00
parent d2650161fb
commit 73b5092785
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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();