]> git.sur5r.net Git - openldap/commitdiff
Fix previous commit
authorHoward Chu <hyc@symas.com>
Thu, 8 Sep 2011 17:08:21 +0000 (10:08 -0700)
committerHoward Chu <hyc@symas.com>
Thu, 8 Sep 2011 17:08:21 +0000 (10:08 -0700)
libraries/libmdb/mdb.c

index ab36f0d476479370a299d89da126cc0cdef00e9e..f16528857348521a493d8683f012dcb1ab33bedb 100644 (file)
@@ -4105,7 +4105,8 @@ newsep:
                rc = mdb_add_node(mc, j, &rkey, &rdata, pgno, flags);
        }
 
-       if (mc->mc_pg[mc->mc_top] == copy)
+       /* reset back to original page */
+       if (newindx < split_indx)
                mc->mc_pg[mc->mc_top] = mp;
 
        nkeys = NUMKEYS(copy);