Skip to content
Snippets Groups Projects
Verified Commit 465a67bf authored by Nicolas Werner's avatar Nicolas Werner
Browse files

Properly close cursors before commit and db deletion

parent 7dd90ed6
Branches
Tags
No related merge requests found
Pipeline #5179 passed
......@@ -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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment