This commit is contained in:
Andrea Cavalli 2022-04-20 23:29:39 +02:00
parent f5cb2d8895
commit 116fc88311

View File

@ -572,7 +572,7 @@ public class LLLocalKeyValueDatabase implements LLKeyValueDatabase {
}
snapshotsHandles.forEach((id, snapshot) -> {
try {
if (db.isOwningHandle() && snapshot.isOwningHandle()) {
if (db.isOwningHandle()) {
db.releaseSnapshot(snapshot);
}
} catch (Exception ex2) {
@ -1058,9 +1058,6 @@ public class LLLocalKeyValueDatabase implements LLKeyValueDatabase {
if (!db.isOwningHandle()) {
return null;
}
if (!dbSnapshot.isOwningHandle()) {
return null;
}
db.releaseSnapshot(dbSnapshot);
return null;
} finally {