Commit 0e24b839 authored by Vincenzo Liberatore's avatar Vincenzo Liberatore Committed by Yoni Fogel

Addresses #629 Remove some tracking code

git-svn-id: file:///svn/mysql/tokudb-engine/src@3282 c7de825b-a66e-492c-adef-691d508d4ae1
parent 37f0d9b3
...@@ -1618,11 +1618,7 @@ int ha_tokudb::remove_key(DB_TXN * trans, uint keynr, const uchar * record, DBT ...@@ -1618,11 +1618,7 @@ int ha_tokudb::remove_key(DB_TXN * trans, uint keynr, const uchar * record, DBT
/* Delete all keys for new_record */ /* Delete all keys for new_record */
int ha_tokudb::remove_keys(DB_TXN * trans, const uchar * record, DBT * new_record, DBT * prim_key, key_map * keys) { int ha_tokudb::remove_keys(DB_TXN * trans, const uchar * record, DBT * new_record, DBT * prim_key, key_map * keys) {
int result = 0; int result = 0;
/* VL
for (uint keynr = 0; keynr < table_share->keys + test(hidden_primary_key); keynr++) { for (uint keynr = 0; keynr < table_share->keys + test(hidden_primary_key); keynr++) {
*/
for (uint keynr = table_share->keys + test(hidden_primary_key); keynr > 0; keynr--) {
keynr--;
if (keys->is_set(keynr)) { if (keys->is_set(keynr)) {
int new_error = remove_key(trans, keynr, record, prim_key); int new_error = remove_key(trans, keynr, record, prim_key);
if (new_error) { if (new_error) {
...@@ -1630,7 +1626,6 @@ keynr--; ...@@ -1630,7 +1626,6 @@ keynr--;
break; // Let rollback correct things break; // Let rollback correct things
} }
} }
keynr++;
} }
return result; return result;
} }
......
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