Commit 7dd6450a authored by Yoni Fogel's avatar Yoni Fogel

Refs trac 6712, Refs Tokutek/ft-engine#40 Reduce computation time when we read...

Refs trac 6712, Refs Tokutek/ft-engine#40 Reduce computation time when we read something out of bounds (do not look in other basement/leaf nodes)
parent 4d77e57f
...@@ -4139,7 +4139,8 @@ toku_ft_cursor_set_range_lock(FT_CURSOR cursor, const DBT *left, const DBT *righ ...@@ -4139,7 +4139,8 @@ toku_ft_cursor_set_range_lock(FT_CURSOR cursor, const DBT *left, const DBT *righ
toku_clone_dbt(&cursor->range_lock_right_key, *right); toku_clone_dbt(&cursor->range_lock_right_key, *right);
} }
cursor->out_of_range_error = out_of_range_error; // TOKUDB_FOUND_BUT_REJECTED is a DB_NOTFOUND with instructions to stop looking. (Faster)
cursor->out_of_range_error = out_of_range_error == DB_NOTFOUND ? TOKUDB_FOUND_BUT_REJECTED : out_of_range_error;
} }
void toku_ft_cursor_close(FT_CURSOR cursor) { void toku_ft_cursor_close(FT_CURSOR cursor) {
......
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