mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-15 03:01:09 +08:00
ITS#8311 add comment
This commit is contained in:
parent
f9d3dc8293
commit
71c07f0d60
@ -8251,6 +8251,11 @@ mdb_page_split(MDB_cursor *mc, MDB_val *newkey, MDB_val *newdata, pgno_t newpgno
|
||||
rp->mp_pad = mp->mp_pad;
|
||||
DPRINTF(("new right sibling: page %"Z"u", rp->mp_pgno));
|
||||
|
||||
/* Usually when splitting the root page, the cursor
|
||||
* height is 1. But when called from mdb_update_key,
|
||||
* the cursor height may be greater because it walks
|
||||
* up the stack while finding the branch slot to update.
|
||||
*/
|
||||
if (mc->mc_top < 1) {
|
||||
if ((rc = mdb_page_new(mc, P_BRANCH, 1, &pp)))
|
||||
goto done;
|
||||
|
Loading…
Reference in New Issue
Block a user