summaryrefslogtreecommitdiff
path: root/src/btree
diff options
context:
space:
mode:
authorKeith Bostic <keith.bostic@mongodb.com>2015-08-05 06:54:07 -0400
committerMichael Cahill <michael.cahill@mongodb.com>2015-08-06 12:12:59 +1000
commitf9572e20ad2de5372bd9c47ea0611a0b95dd92e5 (patch)
tree096d529d779ea59a4dce4c686d7f6da5f855a151 /src/btree
parent0349d8aa5f07209fb9b53cfff8236abe8acedfa3 (diff)
downloadmongo-f9572e20ad2de5372bd9c47ea0611a0b95dd92e5.tar.gz
WT-2025 Assert that cursors are positioned for inserts
Merge pull request #2106 from wiredtiger/cursor-positioned (cherry picked from commit c5c9936fb240c5bb4ec925f683476b7f075cfc78)
Diffstat (limited to 'src/btree')
-rw-r--r--src/btree/col_modify.c2
-rw-r--r--src/btree/row_modify.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/btree/col_modify.c b/src/btree/col_modify.c
index dda56c19636..01db31057fc 100644
--- a/src/btree/col_modify.c
+++ b/src/btree/col_modify.c
@@ -160,7 +160,7 @@ __wt_col_modify(WT_SESSION_IMPL *session, WT_CURSOR_BTREE *cbt,
* The serial mutex acts as our memory barrier to flush these
* writes before inserting them into the list.
*/
- if (WT_SKIP_FIRST(ins_head) == NULL || recno == 0)
+ if (cbt->ins_stack[0] == NULL || recno == 0)
for (i = 0; i < skipdepth; i++) {
cbt->ins_stack[i] = &ins_head->head[i];
ins->next[i] = cbt->next_stack[i] = NULL;
diff --git a/src/btree/row_modify.c b/src/btree/row_modify.c
index f0a10cdf528..2dd42de5900 100644
--- a/src/btree/row_modify.c
+++ b/src/btree/row_modify.c
@@ -192,7 +192,7 @@ __wt_row_modify(WT_SESSION_IMPL *session, WT_CURSOR_BTREE *cbt,
* The serial mutex acts as our memory barrier to flush these
* writes before inserting them into the list.
*/
- if (WT_SKIP_FIRST(ins_head) == NULL)
+ if (cbt->ins_stack[0] == NULL)
for (i = 0; i < skipdepth; i++) {
cbt->ins_stack[i] = &ins_head->head[i];
ins->next[i] = cbt->next_stack[i] = NULL;