Properly close cursors before commit and db deletion

qt66-flatpak
Nicolas Werner 1 year ago
parent 7dd90ed6f0
commit 465a67bfaf
No known key found for this signature in database
GPG Key ID: C8D75E610773F2D9
  1. 2
      src/Cache.cpp

@ -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…
Cancel
Save