Commit f9210302 authored by Yoni Fogel's avatar Yoni Fogel

address #479 changed input parameter in several functions to avoid getting EINVAL returned

git-svn-id: file:///svn/tokudb@2717 c7de825b-a66e-492c-adef-691d508d4ae1
parent d72ee044
...@@ -121,7 +121,7 @@ int toku_rt_find(toku_range_tree* tree, toku_range* query, u_int32_t k, ...@@ -121,7 +121,7 @@ int toku_rt_find(toku_range_tree* tree, toku_range* query, u_int32_t k,
} }
} }
else { else {
r = toku_rbt_lookup(RB_LUFIRST, query, tree->i.rbt, &ignore_insert, &succ_finger, &data); r = toku_rbt_lookup(RB_LUFIRST, NULL, tree->i.rbt, &ignore_insert, &succ_finger, &data);
if (r!=0) { goto cleanup; } if (r!=0) { goto cleanup; }
} }
...@@ -172,7 +172,7 @@ int toku_rt_insert(toku_range_tree* tree, toku_range* range) { ...@@ -172,7 +172,7 @@ int toku_rt_insert(toku_range_tree* tree, toku_range* range) {
if (r!=0) { goto cleanup; } if (r!=0) { goto cleanup; }
} }
else { else {
r = toku_rbt_lookup(RB_LUFIRST, range, tree->i.rbt, &ignore_insert, &succ_finger, &data); r = toku_rbt_lookup(RB_LUFIRST, NULL, tree->i.rbt, &ignore_insert, &succ_finger, &data);
if (r!=0) { goto cleanup; } if (r!=0) { goto cleanup; }
} }
if (data != NULL && tree->end_cmp(data->left, range->right) <= 0) { if (data != NULL && tree->end_cmp(data->left, range->right) <= 0) {
......
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