Commit 3b7f4d41 authored by Zardosht Kasheff's avatar Zardosht Kasheff Committed by Yoni Fogel

addresses BUILD

fix compiler error

git-svn-id: file:///svn/mysql/tokudb-engine/src@12993 c7de825b-a66e-492c-adef-691d508d4ae1
parent abfadfaf
...@@ -5630,6 +5630,7 @@ int ha_tokudb::optimize(THD * thd, HA_CHECK_OPT * check_opt) { ...@@ -5630,6 +5630,7 @@ int ha_tokudb::optimize(THD * thd, HA_CHECK_OPT * check_opt) {
int ha_tokudb::delete_all_rows() { int ha_tokudb::delete_all_rows() {
TOKUDB_DBUG_ENTER("delete_all_rows"); TOKUDB_DBUG_ENTER("delete_all_rows");
int error = 0; int error = 0;
uint curr_num_DBs = 0;
// //
// prelock so we know right away if there are any potential // prelock so we know right away if there are any potential
...@@ -5641,7 +5642,7 @@ int ha_tokudb::delete_all_rows() { ...@@ -5641,7 +5642,7 @@ int ha_tokudb::delete_all_rows() {
} }
// truncate all dictionaries // truncate all dictionaries
uint curr_num_DBs = table->s->keys + test(hidden_primary_key); curr_num_DBs = table->s->keys + test(hidden_primary_key);
for (uint i = 0; i < curr_num_DBs; i++) { for (uint i = 0; i < curr_num_DBs; i++) {
DB *db = share->key_file[i]; DB *db = share->key_file[i];
u_int32_t row_count = 0; u_int32_t row_count = 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