mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-20 22:59:34 -05:00
ITS#10212 LMDB: init txnid for read-only DBs
This commit is contained in:
parent
d3ae7c36e5
commit
37829ce493
1 changed files with 4 additions and 0 deletions
|
|
@ -2771,6 +2771,10 @@ mdb_txn_renew0(MDB_txn *txn)
|
|||
UNLOCK_MUTEX(rmutex);
|
||||
return MDB_READERS_FULL;
|
||||
}
|
||||
if ((env->me_flags & MDB_RDONLY) && !ti->mti_txnid) {
|
||||
meta = mdb_env_pick_meta(env);
|
||||
ti->mti_txnid = meta->mm_txnid;
|
||||
}
|
||||
r = &ti->mti_readers[i];
|
||||
/* Claim the reader slot, carefully since other code
|
||||
* uses the reader table un-mutexed: First reset the
|
||||
|
|
|
|||
Loading…
Reference in a new issue