summaryrefslogtreecommitdiff
path: root/src/btree/bt_curprev.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/bt_curprev.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/bt_curprev.c')
-rw-r--r--src/btree/bt_curprev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/btree/bt_curprev.c b/src/btree/bt_curprev.c
index 8ad57002a29..4767762b564 100644
--- a/src/btree/bt_curprev.c
+++ b/src/btree/bt_curprev.c
@@ -555,6 +555,6 @@ __wt_btcur_prev(WT_CURSOR_BTREE *cbt, int truncating)
}
err: if (ret != 0)
- WT_TRET(__cursor_error_resolve(cbt));
+ WT_TRET(__cursor_reset(cbt));
return (ret);
}