]> git.sur5r.net Git - openldap/commitdiff
ITS#7515 update parent's mt_next_pgno on child commit
authorHoward Chu <hyc@openldap.org>
Sun, 17 Feb 2013 00:49:53 +0000 (00:49 +0000)
committerHoward Chu <hyc@openldap.org>
Sun, 17 Feb 2013 00:49:53 +0000 (00:49 +0000)
libraries/liblmdb/mdb.c

index 8d7b97e099ce1c8bffd02c1ecb38547b7e9d35ce..7c766aad54e8dad9d0bcac3752bda6faad9909a2 100644 (file)
@@ -2104,6 +2104,7 @@ mdb_txn_commit(MDB_txn *txn)
                dst[0].mid = x;
                free(txn->mt_u.dirty_list);
                txn->mt_parent->mt_child = NULL;
+               txn->mt_parent->mt_next_pgno = txn->mt_next_pgno;
                free(txn);
                return MDB_SUCCESS;
        }