]> git.sur5r.net Git - openldap/commitdiff
Merge remote-tracking branch 'origin/mdb.RE/0.9'
authorHoward Chu <hyc@openldap.org>
Tue, 29 Sep 2015 17:16:11 +0000 (18:16 +0100)
committerHoward Chu <hyc@openldap.org>
Tue, 29 Sep 2015 17:16:11 +0000 (18:16 +0100)
libraries/liblmdb/mdb.c

index 50d359ebb007b12b1e3bd4c0cac763482dcd3558..4a251f2e1cf7732dd38d00fbe75f42e87ed0659f 100644 (file)
@@ -7690,10 +7690,10 @@ mdb_rebalance(MDB_cursor *mc)
        indx_t oldki;
 
        if (IS_BRANCH(mc->mc_pg[mc->mc_top])) {
-               minkeys = 1;
+               minkeys = 2;
                thresh = 1;
        } else {
-               minkeys = 2;
+               minkeys = 1;
                thresh = FILL_THRESHOLD;
        }
        DPRINTF(("rebalancing %s page %"Z"u (has %u keys, %.1f%% full)",