diff options
author | Keith Bostic <keith.bostic@wiredtiger.com> | 2011-09-05 09:54:27 +0000 |
---|---|---|
committer | Keith Bostic <keith.bostic@wiredtiger.com> | 2011-09-05 09:54:27 +0000 |
commit | 92b78da376403c68468725352a41e09c677990fa (patch) | |
tree | 64bb8762e3c37939fd955c02af606d62776ff945 /build_posix | |
parent | 9fa0bd1e8b5844fa14742e415d8d56e04ffa11d7 (diff) | |
download | mongo-92b78da376403c68468725352a41e09c677990fa.tar.gz |
Make the cursor->search_near method's "exact" argument work.
Add cursor->search function for Btree tables, cursor->search_near has
to do quite a bit more work if there's no exact match, we don't want
to slow down normal lookup.
Replace WT_CURSOR_BTREE->match with WT_CURSOR_BTREE->compare which
matches the semantics of the exact parameter to cursor->search_near,
that is, -1 if it's a smaller key in the tree, 0 for an exact match,
and 1 if it's a larger key in the tree.
The cursor->search_near function has to return a key if the match is
not exact: change __wt_return_value() to optionally return a key, and
rename it to __wt_kv_return().
Split read statistics into read and read-near.
Move set of WT_CURSOR_BTREE->flags(WT_CBT_SEARCH_SET) down into the
search routines.
Change __cursor_deleted() to be a boolean, not returning an error value,
we don't necessarily return error on deleted records.
The search routines don't return WT_RESTART, that only happens if the
tree is modified: remove restart loops from search calls, add restart
loops to modify calls.
Diffstat (limited to 'build_posix')
-rw-r--r-- | build_posix/aclocal/version-set.m4 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/build_posix/aclocal/version-set.m4 b/build_posix/aclocal/version-set.m4 index 8918d726898..4d9ba6bdc73 100644 --- a/build_posix/aclocal/version-set.m4 +++ b/build_posix/aclocal/version-set.m4 @@ -3,7 +3,7 @@ dnl build by dist/s_version VERSION_MAJOR=0 VERSION_MINOR=7 VERSION_PATCH=0 -VERSION_STRING='"WiredTiger 0.7.0: (September 2, 2011)"' +VERSION_STRING='"WiredTiger 0.7.0: (September 5, 2011)"' AC_SUBST(VERSION_MAJOR) AC_SUBST(VERSION_MINOR) |