mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-02 02:14:13 +08:00
mdbx: minor clarify mdbx_mapresize()
.
This commit is contained in:
parent
728e7f92b2
commit
c18bf4f898
@ -5974,8 +5974,8 @@ __cold static int mdbx_mapresize(MDBX_env *env, const pgno_t used_pgno,
|
|||||||
/* looking for readers from this process */
|
/* looking for readers from this process */
|
||||||
const unsigned snap_nreaders =
|
const unsigned snap_nreaders =
|
||||||
atomic_load32(&lck->mti_numreaders, mo_AcquireRelease);
|
atomic_load32(&lck->mti_numreaders, mo_AcquireRelease);
|
||||||
mresize_flags |= implicit ? MDBX_MRESIZE_MAY_UNMAP
|
mdbx_assert(env, !implicit);
|
||||||
: MDBX_MRESIZE_MAY_UNMAP | MDBX_MRESIZE_MAY_MOVE;
|
mresize_flags |= MDBX_MRESIZE_MAY_UNMAP | MDBX_MRESIZE_MAY_MOVE;
|
||||||
for (unsigned i = 0; i < snap_nreaders; ++i) {
|
for (unsigned i = 0; i < snap_nreaders; ++i) {
|
||||||
if (lck->mti_readers[i].mr_pid.weak == env->me_pid &&
|
if (lck->mti_readers[i].mr_pid.weak == env->me_pid &&
|
||||||
lck->mti_readers[i].mr_tid.weak != mdbx_thread_self()) {
|
lck->mti_readers[i].mr_tid.weak != mdbx_thread_self()) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user