mirror of
https://github.com/isar/libmdbx.git
synced 2024-10-30 11:29:19 +08:00
mdbx: minor refine txn_commit().
Re-assign `rc` variable to release register from allocation. Change-Id: Ibafd70efd53591d3bf190417e1b2f3b20299e7d2
This commit is contained in:
parent
7d1eff5116
commit
5eafc6e738
@ -7012,6 +7012,7 @@ int mdbx_txn_commit(MDBX_txn *txn) {
|
||||
(txn->mt_flags & (MDBX_TXN_DIRTY | MDBX_TXN_SPILLS)) == 0) {
|
||||
for (int i = txn->mt_numdbs; --i >= 0;)
|
||||
mdbx_tassert(txn, (txn->mt_dbflags[i] & DB_DIRTY) == 0);
|
||||
rc = MDBX_SUCCESS;
|
||||
goto done;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user