diff options
author | Michael Cahill <michael.cahill@mongodb.com> | 2016-06-17 10:46:11 +1000 |
---|---|---|
committer | Alex Gorrod <alexander.gorrod@mongodb.com> | 2016-06-17 10:46:11 +1000 |
commit | e23453c69610484ddfcb57588a82b4cc0b5b7c7c (patch) | |
tree | 8730321a621152e503b22b88e9e71ed0f84d9ce6 /src/btree | |
parent | d34a6c4867533a57da0b546dc3d43f69411eef0d (diff) | |
download | mongo-e23453c69610484ddfcb57588a82b4cc0b5b7c7c.tar.gz |
WT-2622 Clear old position for all random lookups. (#2802)
Diffstat (limited to 'src/btree')
-rw-r--r-- | src/btree/row_srch.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/btree/row_srch.c b/src/btree/row_srch.c index a631764be7e..4afcd74520f 100644 --- a/src/btree/row_srch.c +++ b/src/btree/row_srch.c @@ -639,10 +639,11 @@ __wt_row_random_leaf(WT_SESSION_IMPL *session, WT_CURSOR_BTREE *cbt) int level; page = cbt->ref->page; - start = stop = NULL; /* [-Wconditional-uninitialized] */ entries = 0; /* [-Wconditional-uninitialized] */ + __cursor_pos_clear(cbt); + /* If the page has disk-based entries, select from them. */ if (page->pg_row_entries != 0) { cbt->compare = 0; @@ -795,8 +796,6 @@ __wt_row_random_descent(WT_SESSION_IMPL *session, WT_CURSOR_BTREE *cbt) btree = S2BT(session); current = NULL; - __cursor_pos_clear(cbt); - if (0) { restart: /* * Discard the currently held page and restart the search from |