summary refs log tree commit diff
path: root/db/btree/bt_put.c
diff options
context:
space:
mode:
Diffstat (limited to 'db/btree/bt_put.c')
-rw-r--r--db/btree/bt_put.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/db/btree/bt_put.c b/db/btree/bt_put.c
index e6241152f3..15309c66e2 100644
--- a/db/btree/bt_put.c
+++ b/db/btree/bt_put.c
@@ -223,7 +223,7 @@ delete:		if (__bt_dleaf(t, key, h, index) == RET_ERROR) {
 	    t->bt_cursor.pg.pgno == h->pgno && t->bt_cursor.pg.index >= index)
 		++t->bt_cursor.pg.index;
 
-	if (t->bt_order == NOT)
+	if (t->bt_order == NOT) {
 		if (h->nextpg == P_INVALID) {
 			if (index == NEXTINDEX(h) - 1) {
 				t->bt_order = FORWARD;
@@ -237,6 +237,7 @@ delete:		if (__bt_dleaf(t, key, h, index) == RET_ERROR) {
 				t->bt_last.pgno = h->pgno;
 			}
 		}
+	}
 
 	mpool_put(t->bt_mp, h, MPOOL_DIRTY);