mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-20 22:59:34 -05:00
More ITS#7589: Fix prev commit.
mp_pages gives #pages in the ovpage. OVPAGES() no longer does.
This commit is contained in:
parent
0cdd9dffdd
commit
e4ce404992
1 changed files with 2 additions and 1 deletions
|
|
@ -5192,10 +5192,11 @@ current:
|
|||
pgno_t pg;
|
||||
int ovpages, dpages;
|
||||
|
||||
ovpages = OVPAGES(NODEDSZ(leaf), mc->mc_txn->mt_env->me_psize);
|
||||
dpages = OVPAGES(data->mv_size, mc->mc_txn->mt_env->me_psize);
|
||||
memcpy(&pg, NODEDATA(leaf), sizeof(pg));
|
||||
mdb_page_get(mc->mc_txn, pg, &omp);
|
||||
ovpages = omp->mp_pages;
|
||||
|
||||
/* Is the ov page writable and large enough? */
|
||||
if ((omp->mp_flags & P_DIRTY) && ovpages >= dpages) {
|
||||
/* yes, overwrite it. Note in this case we don't
|
||||
|
|
|
|||
Loading…
Reference in a new issue