mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-20 22:59:34 -05:00
Fix mdb_rebalance
Don't do anything with (fake root) subpages
This commit is contained in:
parent
aca6c08897
commit
dbb9ded2f8
1 changed files with 4 additions and 0 deletions
|
|
@ -6320,6 +6320,10 @@ mdb_rebalance(MDB_cursor *mc)
|
|||
|
||||
if (mc->mc_snum < 2) {
|
||||
MDB_page *mp = mc->mc_pg[0];
|
||||
if (IS_SUBP(mp)) {
|
||||
DPUTS("Can't rebalance a subpage, ignoring");
|
||||
return MDB_SUCCESS;
|
||||
}
|
||||
if (NUMKEYS(mp) == 0) {
|
||||
DPUTS("tree is completely empty");
|
||||
mc->mc_db->md_root = P_INVALID;
|
||||
|
|
|
|||
Loading…
Reference in a new issue