mdbx: minor refine txn_commit().

Re-assign `rc` variable to release register from allocation.

Change-Id: Ibafd70efd53591d3bf190417e1b2f3b20299e7d2
This commit is contained in:
Leonid Yuriev 2019-12-30 17:19:53 +03:00
parent 7d1eff5116
commit 5eafc6e738

View File

@ -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;
}