Commit 5bfc86d6 authored by Barry Perlman's avatar Barry Perlman Committed by Yoni Fogel

[t:2811] Minor improvement of is_le_val_del() to have single return (easier to debug).

git-svn-id: file:///svn/toku/tokudb@25707 c7de825b-a66e-492c-adef-691d508d4ae1
parent ab3ee9f0
......@@ -4394,6 +4394,7 @@ brt_cursor_update(BRT_CURSOR brtcursor) {
//
static inline int
is_le_val_del(LEAFENTRY le, BRT_CURSOR brtcursor) {
int rval;
if (brtcursor->is_snapshot_read) {
BOOL is_del;
le_iterate_is_del(
......@@ -4402,11 +4403,12 @@ is_le_val_del(LEAFENTRY le, BRT_CURSOR brtcursor) {
&is_del,
brtcursor->ttxn
);
return is_del;
rval = is_del;
}
else {
return le_latest_is_del(le);
rval = le_latest_is_del(le);
}
return rval;
}
// This is a bottom layer of the search functions.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment