From 5f2ddb5532df92c765f2f36a7606ed6ef28d23db Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Mon, 22 Oct 2012 16:13:06 -0700 Subject: [PATCH] Minor cleanup --- libraries/libmdb/mdb.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/libraries/libmdb/mdb.c b/libraries/libmdb/mdb.c index 994a5d9..e4d543e 100644 --- a/libraries/libmdb/mdb.c +++ b/libraries/libmdb/mdb.c @@ -1949,15 +1949,15 @@ mdb_txn_commit(MDB_txn *txn) return EINVAL; } - /* Merge (and close) our cursors with parent's */ - mdb_cursor_merge(txn); - if (txn->mt_parent) { MDB_db *ip, *jp; MDB_dbi i; unsigned x, y; MDB_ID2L dst, src; + /* Merge (and close) our cursors with parent's */ + mdb_cursor_merge(txn); + /* Update parent's DB table */ ip = &txn->mt_parent->mt_dbs[2]; jp = &txn->mt_dbs[2]; @@ -2140,7 +2140,7 @@ again: while (env->me_pgfree) { MDB_oldpages *mop = env->me_pgfree; env->me_pgfree = mop->mo_next; - free(mop);; + free(mop); } /* Check for growth of freelist again */ @@ -4000,7 +4000,7 @@ mdb_cursor_sibling(MDB_cursor *mc, int move_right) indx = NODEPTR(mc->mc_pg[mc->mc_top], mc->mc_ki[mc->mc_top]); if ((rc = mdb_page_get(mc->mc_txn, NODEPGNO(indx), &mp))) - return rc;; + return rc; mdb_cursor_push(mc, mp);