summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Cahill <michael.cahill@wiredtiger.com>2013-08-20 17:17:13 +1000
committerMichael Cahill <michael.cahill@wiredtiger.com>2013-08-20 17:17:13 +1000
commitb0e30498baa8684e04f03c5cb6925181b9fc7972 (patch)
tree85b9b3e640afcda28f3f10f76d088600011a0a19
parente20f62f54ddceafa7c82092e15a39b6b7ef6d7c9 (diff)
downloadmongo-b0e30498baa8684e04f03c5cb6925181b9fc7972.tar.gz
Avoid a race installing an insert list.
-rw-r--r--src/btree/row_modify.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/btree/row_modify.c b/src/btree/row_modify.c
index fc499b6208c..bc0e6b61546 100644
--- a/src/btree/row_modify.c
+++ b/src/btree/row_modify.c
@@ -228,6 +228,8 @@ __wt_insert_serial_func(WT_SESSION_IMPL *session, void *args)
if ((inshead = *insheadp) == NULL)
inshead = new_inshead;
+ else if (new_inshead != NULL)
+ return (WT_RESTART);
/*
* Check the page's write-generation: if that fails, check whether we