Properly close cursors before commit and db deletion
This commit is contained in:
parent
7dd90ed6f0
commit
465a67bfaf
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user