fix prev commit
authorHoward Chu <hyc@openldap.org>
Mon, 15 Apr 2013 16:30:39 +0000 (09:30 -0700)
committerHoward Chu <hyc@openldap.org>
Mon, 15 Apr 2013 16:30:39 +0000 (09:30 -0700)
libraries/liblmdb/mdb.c

index ca669f2555f8dc486df7515b42ed78f7da6850d2..ad2cec29ec57af523def4bec64e3bb93e2c073f5 100644 (file)
@@ -6307,7 +6307,7 @@ mdb_rebalance(MDB_cursor *mc)
 #endif
 
        if (PAGEFILL(mc->mc_txn->mt_env, mc->mc_pg[mc->mc_top]) >= FILL_THRESHOLD &&
-               NUMKEYS(mc->mc_pg[mc->mc_top] >= minkeys)) {
+               NUMKEYS(mc->mc_pg[mc->mc_top]) >= minkeys) {
 #if MDB_DEBUG
                pgno_t pgno;
                COPY_PGNO(pgno, mc->mc_pg[mc->mc_top]->mp_pgno);