summaryrefslogtreecommitdiff
path: root/src/btree/col_srch.c
diff options
context:
space:
mode:
authorMichael Cahill <michael.cahill@wiredtiger.com>2015-02-02 17:11:27 +1100
committerMichael Cahill <michael.cahill@wiredtiger.com>2015-02-02 17:11:27 +1100
commit5f00de07b5bad20a6ffb5ec7d412c4ca0b10c64f (patch)
tree759ef608bc56c2ff84f0b42c4b53ca341e974548 /src/btree/col_srch.c
parent7f72921fdfc5ad3b4f4d089a192469972c69bf08 (diff)
downloadmongo-5f00de07b5bad20a6ffb5ec7d412c4ca0b10c64f.tar.gz
split_gen paranoia: always increment split_gen once per split, use the allocated value to check for existing readers. Make sure that publishing a split_gen doesn't miss an update.
Diffstat (limited to 'src/btree/col_srch.c')
-rw-r--r--src/btree/col_srch.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/btree/col_srch.c b/src/btree/col_srch.c
index 4c418f91de0..db1b565b439 100644
--- a/src/btree/col_srch.c
+++ b/src/btree/col_srch.c
@@ -49,6 +49,7 @@ restart: page = current->page;
WT_ASSERT(session, current->key.recno == page->pg_intl_recno);
+ WT_ASSERT(session, session->split_gen != 0);
pindex = WT_INTL_INDEX_COPY(page);
base = pindex->entries;
descent = pindex->index[base - 1];