Commit 5ab4085f authored by Zardosht Kasheff's avatar Zardosht Kasheff Committed by Yoni Fogel

addresses #1852

changes from code review

git-svn-id: file:///svn/mysql/tokudb-engine/src@13403 c7de825b-a66e-492c-adef-691d508d4ae1
parent 6b0f76b2
...@@ -3981,7 +3981,6 @@ int ha_tokudb::prelock_range( const key_range *start_key, const key_range *end_k ...@@ -3981,7 +3981,6 @@ int ha_tokudb::prelock_range( const key_range *start_key, const key_range *end_k
bzero((void *) &start_dbt_key, sizeof(start_dbt_key)); bzero((void *) &start_dbt_key, sizeof(start_dbt_key));
bzero((void *) &end_dbt_key, sizeof(end_dbt_key)); bzero((void *) &end_dbt_key, sizeof(end_dbt_key));
range_lock_grabbed = false;
if (start_key) { if (start_key) {
switch (start_key->flag) { switch (start_key->flag) {
...@@ -4044,7 +4043,11 @@ int ha_tokudb::prelock_range( const key_range *start_key, const key_range *end_k ...@@ -4044,7 +4043,11 @@ int ha_tokudb::prelock_range( const key_range *start_key, const key_range *end_k
int ha_tokudb::prepare_range_scan( const key_range *start_key, const key_range *end_key) { int ha_tokudb::prepare_range_scan( const key_range *start_key, const key_range *end_key) {
return prelock_range(start_key, end_key); int error = prelock_range(start_key, end_key);
if (!error) {
range_lock_grabbed = true;
}
return error;
} }
int ha_tokudb::read_range_first( int ha_tokudb::read_range_first(
......
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