diff options
author | Keith Bostic <keith@wiredtiger.com> | 2015-12-10 17:22:16 -0500 |
---|---|---|
committer | Keith Bostic <keith@wiredtiger.com> | 2015-12-10 17:22:16 -0500 |
commit | f6a410abc7833da1cc9e248945d311641bd4926a (patch) | |
tree | cf4abd33436dc2239bb01aaf9b15f04cd2ad03ec /src/btree/col_srch.c | |
parent | d89e7df83e87fa0c2cbd97059cac19f792854d47 (diff) | |
download | mongo-f6a410abc7833da1cc9e248945d311641bd4926a.tar.gz |
Add a clarifying comment: proceed with the leaf page search even if we
aren't sure the key is on the leaf page, at least we know the search-key
is larger than the leaf page's starting key.
Diffstat (limited to 'src/btree/col_srch.c')
-rw-r--r-- | src/btree/col_srch.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/btree/col_srch.c b/src/btree/col_srch.c index 2ac21e1407a..643b7961cc7 100644 --- a/src/btree/col_srch.c +++ b/src/btree/col_srch.c @@ -46,6 +46,11 @@ __check_leaf_key_range(WT_SESSION_IMPL *session, return (0); } + /* + * We may not have been able to check if the next page's key is greater + * than the search key; there's a reasonable chance, continue with the + * leaf-page search. + */ cbt->compare = 0; return (0); } |