mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-25 17:19:43 -05:00
parent
3e6ac6ef6b
commit
1413de3a04
1 changed files with 9 additions and 1 deletions
|
|
@ -2573,9 +2573,17 @@ mdb_txn_renew0(MDB_txn *txn)
|
|||
if (ti) {
|
||||
if (LOCK_MUTEX(rc, env, MDB_MUTEX(env, w)))
|
||||
return rc;
|
||||
|
||||
#ifdef MDB_USE_SYSV_SEM
|
||||
meta = env->me_metas[ mdb_env_pick_meta(env) ];
|
||||
txn->mt_txnid = meta->mm_txnid;
|
||||
/* Update mti_txnid like mdb_mutex_failed() would,
|
||||
* in case last writer crashed before updating it.
|
||||
*/
|
||||
ti->mti_txnid = txn->mt_txnid;
|
||||
#else
|
||||
txn->mt_txnid = ti->mti_txnid;
|
||||
meta = env->me_metas[txn->mt_txnid & 1];
|
||||
#endif
|
||||
} else {
|
||||
meta = env->me_metas[ mdb_env_pick_meta(env) ];
|
||||
txn->mt_txnid = meta->mm_txnid;
|
||||
|
|
|
|||
Loading…
Reference in a new issue