diff options
author | Michael Cahill <michael.cahill@wiredtiger.com> | 2013-08-20 17:17:13 +1000 |
---|---|---|
committer | Michael Cahill <michael.cahill@wiredtiger.com> | 2013-08-20 17:17:13 +1000 |
commit | b0e30498baa8684e04f03c5cb6925181b9fc7972 (patch) | |
tree | 85b9b3e640afcda28f3f10f76d088600011a0a19 | |
parent | e20f62f54ddceafa7c82092e15a39b6b7ef6d7c9 (diff) | |
download | mongo-b0e30498baa8684e04f03c5cb6925181b9fc7972.tar.gz |
Avoid a race installing an insert list.
-rw-r--r-- | src/btree/row_modify.c | 2 |
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 |