summaryrefslogtreecommitdiff
path: root/src/btree/bt_ret.c
diff options
context:
space:
mode:
authorKeith Bostic <keith@wiredtiger.com>2014-01-09 13:22:23 -0500
committerKeith Bostic <keith@wiredtiger.com>2014-01-09 13:22:23 -0500
commitcd072599da202c8dc662c68544e915ba76c5283a (patch)
tree3a51da689ec082e5990331b5040418876fe1d601 /src/btree/bt_ret.c
parentd8b7f9f5fe5570201e960dfa952418a5d779d89d (diff)
downloadmongo-cd072599da202c8dc662c68544e915ba76c5283a.tar.gz
Avoid unpacking the key cell multiple times when returning key/value
pairs from row-store pages. Enhance the cell unpack call to optionally return a reference to the value cell that follows the key, so code that unpacks the on-page key cell has the value cell without any further work. Inline __wt_row_value (as __wt_row_leaf_value).
Diffstat (limited to 'src/btree/bt_ret.c')
-rw-r--r--src/btree/bt_ret.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/btree/bt_ret.c b/src/btree/bt_ret.c
index 6118b37ab01..255ac75d1df 100644
--- a/src/btree/bt_ret.c
+++ b/src/btree/bt_ret.c
@@ -130,7 +130,7 @@ __wt_kv_return(WT_SESSION_IMPL *session, WT_CURSOR_BTREE *cbt)
}
/* Take the original cell (which may be empty). */
- if ((cell = __wt_row_value(page, rip)) == NULL) {
+ if ((cell = __wt_row_leaf_value(page, rip)) == NULL) {
cursor->value.size = 0;
return (0);
}