mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-04-12 15:10:31 +08:00
ITS#10212 LMDB: init txnid for read-only DBs
This commit is contained in:
parent
dd2ad2fd5a
commit
4a25e0699b
@ -3278,6 +3278,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…
x
Reference in New Issue
Block a user