mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-30 13:30:57 +08:00
Comment ~MDB_APPEND, from earlier commit message.
This commit is contained in:
parent
cb5656c726
commit
c0d64cf182
@ -6166,7 +6166,7 @@ new_sub:
|
|||||||
nsize = IS_LEAF2(mc->mc_pg[mc->mc_top]) ? key->mv_size : mdb_leaf_size(env, key, rdata);
|
nsize = IS_LEAF2(mc->mc_pg[mc->mc_top]) ? key->mv_size : mdb_leaf_size(env, key, rdata);
|
||||||
if (SIZELEFT(mc->mc_pg[mc->mc_top]) < nsize) {
|
if (SIZELEFT(mc->mc_pg[mc->mc_top]) < nsize) {
|
||||||
if (( flags & (F_DUPDATA|F_SUBDATA)) == F_DUPDATA )
|
if (( flags & (F_DUPDATA|F_SUBDATA)) == F_DUPDATA )
|
||||||
nflags &= ~MDB_APPEND;
|
nflags &= ~MDB_APPEND; /* sub-page may need room to grow */
|
||||||
if (!insert_key)
|
if (!insert_key)
|
||||||
nflags |= MDB_SPLIT_REPLACE;
|
nflags |= MDB_SPLIT_REPLACE;
|
||||||
rc = mdb_page_split(mc, key, rdata, P_INVALID, nflags);
|
rc = mdb_page_split(mc, key, rdata, P_INVALID, nflags);
|
||||||
|
Loading…
Reference in New Issue
Block a user