]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#9524 fix loose page tracking
authorHoward Chu <hyc@openldap.org>
Wed, 21 Sep 2022 16:07:36 +0000 (17:07 +0100)
committerHoward Chu <hyc@openldap.org>
Wed, 21 Sep 2022 16:07:36 +0000 (17:07 +0100)
Fixes commit 0e17ba43a818f6bdab7759586e247bae12692c25, loose pages
that have been dropped from dirty list should no longer be counted.

libraries/liblmdb/mdb.c

index c9c39b0eb6199dfc9f14f1d4645bf0cc51d22188..d4a2996be085f5782abab91a69ed7ad693ace4ea 100644 (file)
@@ -3717,7 +3717,6 @@ mdb_freelist_save(MDB_txn *txn)
                unsigned x;
                if ((rc = mdb_midl_need(&txn->mt_free_pgs, txn->mt_loose_count)) != 0)
                        return rc;
-               lost_loose = txn->mt_loose_count;
                for (; mp; mp = NEXT_LOOSE_PAGE(mp)) {
                        mdb_midl_xappend(txn->mt_free_pgs, mp->mp_pgno);
                        /* must also remove from dirty list */