mirror of
https://github.com/isar/libmdbx.git
synced 2024-12-30 03:04:12 +08:00
mdbx: fix env_set_geometry() for opened-env + outside-txn case.
Change-Id: I4526aa8011895ef7b5529995503966117c37e107
This commit is contained in:
parent
03cc19babb
commit
7ab9d24d3b
@ -9183,6 +9183,7 @@ mdbx_env_set_geometry(MDBX_env *env, intptr_t size_lower, intptr_t size_now,
|
||||
env->me_txn->mt_geo = new_geo;
|
||||
env->me_txn->mt_flags |= MDBX_TXN_DIRTY;
|
||||
} else {
|
||||
meta.mm_geo = new_geo;
|
||||
mdbx_meta_set_txnid(
|
||||
env, &meta, safe64_txnid_next(mdbx_meta_txnid_stable(env, head)));
|
||||
rc = mdbx_sync_locked(env, env->me_flags, &meta);
|
||||
|
Loading…
x
Reference in New Issue
Block a user