summaryrefslogtreecommitdiff
path: root/src/btree/col_srch.c
diff options
context:
space:
mode:
authorKeith Bostic <keith@wiredtiger.com>2014-07-17 17:00:47 -0400
committerKeith Bostic <keith@wiredtiger.com>2014-07-17 17:00:47 -0400
commit61c4f0a86e25118025bb81c41a00b9df04eb7ef2 (patch)
tree860cc97c85cb1d26114a894570f38c34d04fe46a /src/btree/col_srch.c
parentd16d7229ea2d13733d2d637e0e80f7f25d011a6e (diff)
downloadmongo-61c4f0a86e25118025bb81c41a00b9df04eb7ef2.tar.gz
Rename __cursor_search_clear __cursor_pos_clear; it's the code that
clears a cursor's location, and is no longer unique to the search functions. Change __cursor_error_resolve cursor error resolution to clear the cursor's location even if we see a failure from the cursor "leave" function (probably a bad return from releasing a page), keeping the cursor's location isn't likely to make anything better. sename __cursor_error_resolve to __cursor_reset, it's a combination of "leave the API" and "clear the cursor's location"; now that it clears the cursor location regardless of the return from the cursor "leave" function, we can call it from the WT_CURSOR.reset code, they're the same.
Diffstat (limited to 'src/btree/col_srch.c')
-rw-r--r--src/btree/col_srch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/btree/col_srch.c b/src/btree/col_srch.c
index d824339d1a0..e44dd3fce67 100644
--- a/src/btree/col_srch.c
+++ b/src/btree/col_srch.c
@@ -28,7 +28,7 @@ __wt_col_search(WT_SESSION_IMPL *session,
btree = S2BT(session);
- __cursor_search_clear(cbt);
+ __cursor_pos_clear(cbt);
/*
* In the service of eviction splits, we're only searching a single leaf