mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-20 22:59:34 -05:00
ITS#8336 fix page_search_root assert on FreeDB
Let "illegal" branch pages thru on the FreeDB - the condition is only temporary and will be fixed by the time rebalance finishes.
This commit is contained in:
parent
ac6947401b
commit
fd7bfbc0df
1 changed files with 5 additions and 1 deletions
|
|
@ -5279,7 +5279,11 @@ mdb_page_search_root(MDB_cursor *mc, MDB_val *key, int flags)
|
||||||
indx_t i;
|
indx_t i;
|
||||||
|
|
||||||
DPRINTF(("branch page %"Z"u has %u keys", mp->mp_pgno, NUMKEYS(mp)));
|
DPRINTF(("branch page %"Z"u has %u keys", mp->mp_pgno, NUMKEYS(mp)));
|
||||||
mdb_cassert(mc, NUMKEYS(mp) > 1);
|
/* Don't assert on branch pages in the FreeDB. We can get here
|
||||||
|
* while in the process of rebalancing a FreeDB branch page; we must
|
||||||
|
* let that proceed. ITS#8336
|
||||||
|
*/
|
||||||
|
mdb_cassert(mc, !mc->mc_dbi || NUMKEYS(mp) > 1);
|
||||||
DPRINTF(("found index 0 to page %"Z"u", NODEPGNO(NODEPTR(mp, 0))));
|
DPRINTF(("found index 0 to page %"Z"u", NODEPGNO(NODEPTR(mp, 0))));
|
||||||
|
|
||||||
if (flags & (MDB_PS_FIRST|MDB_PS_LAST)) {
|
if (flags & (MDB_PS_FIRST|MDB_PS_LAST)) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue