Merge pull request #9290

d64a5f7 Fix lmdb txn commit code (Lee *!* Clagett)
This commit is contained in:
luigi1111
2024-12-23 10:25:10 -05:00
2 changed files with 9 additions and 5 deletions
+3 -2
View File
@@ -179,9 +179,10 @@ namespace lmdb
expect<void> database::commit(write_txn txn) noexcept
{
MONERO_PRECOND(txn != nullptr);
MONERO_LMDB_CHECK(mdb_txn_commit(txn.get()));
txn.release();
const int err = mdb_txn_commit(txn.release());
release_context(ctx);
if (err)
return {lmdb::error(err)};
return success();
}
} // lmdb