Commit df5cc271 authored by Zardosht Kasheff's avatar Zardosht Kasheff Committed by Yoni Fogel

refs #6195, make fix

git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@54128 c7de825b-a66e-492c-adef-691d508d4ae1
parent c90e932d
...@@ -5071,8 +5071,7 @@ int ha_tokudb::fill_range_query_buf( ...@@ -5071,8 +5071,7 @@ int ha_tokudb::fill_range_query_buf(
// we tell the cursor to continue and don't store // we tell the cursor to continue and don't store
// the key locally // the key locally
else if (result == ICP_NO_MATCH) { else if (result == ICP_NO_MATCH) {
error = TOKUDB_CURSOR_CONTINUE; goto check_bounds;
goto cleanup;
} }
} }
#endif #endif
...@@ -5225,6 +5224,7 @@ int ha_tokudb::fill_range_query_buf( ...@@ -5225,6 +5224,7 @@ int ha_tokudb::fill_range_query_buf(
error = 0; error = 0;
goto cleanup; goto cleanup;
} }
check_bounds:
if (direction > 0) { if (direction > 0) {
// compare what we got to the right endpoint of prelocked range // compare what we got to the right endpoint of prelocked range
// because we are searching keys in ascending order // because we are searching keys in ascending order
......
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