Properly close cursors before commit and db deletion

This commit is contained in:
Nicolas Werner 2023-10-25 17:41:40 +02:00
parent 7dd90ed6f0
commit 465a67bfaf
No known key found for this signature in database
GPG key ID: C8D75E610773F2D9

View file

@ -1748,9 +1748,11 @@ Cache::runMigrations()
combineOlmSessionKeyFromCurveAndSessionId(curveKey, session_id),
json);
}
olmCursor.close();
oldDb.drop(txn, true);
}
dbNames.close();
if (doCommit) txn.commit();
} catch (const lmdb::error &e) {