]> git.sur5r.net Git - openldap/commitdiff
Comment ~MDB_APPEND, from earlier commit message.
authorHallvard Furuseth <hallvard@openldap.org>
Fri, 30 May 2014 08:50:04 +0000 (10:50 +0200)
committerHallvard Furuseth <hallvard@openldap.org>
Fri, 30 May 2014 08:50:04 +0000 (10:50 +0200)
libraries/liblmdb/mdb.c

index 33928b1cde964ed5c35f400696aea586e9ee30e1..f66b7198f9b27b0499d5681dd7b29f91ce538ab8 100644 (file)
@@ -6166,7 +6166,7 @@ new_sub:
        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 (( flags & (F_DUPDATA|F_SUBDATA)) == F_DUPDATA )
-                       nflags &= ~MDB_APPEND;
+                       nflags &= ~MDB_APPEND; /* sub-page may need room to grow */
                if (!insert_key)
                        nflags |= MDB_SPLIT_REPLACE;
                rc = mdb_page_split(mc, key, rdata, P_INVALID, nflags);