Commit 503863ae authored by Rich Prohaska's avatar Rich Prohaska

remove junk debug code

parent 5172855d
...@@ -3370,8 +3370,6 @@ int ha_tokudb::end_bulk_insert() { ...@@ -3370,8 +3370,6 @@ int ha_tokudb::end_bulk_insert() {
return end_bulk_insert( false ); return end_bulk_insert( false );
} }
volatile int ha_tokudb_is_index_unique_wait = 0; // debug
int ha_tokudb::is_index_unique(bool* is_unique, DB_TXN* txn, DB* db, KEY* key_info) { int ha_tokudb::is_index_unique(bool* is_unique, DB_TXN* txn, DB* db, KEY* key_info) {
int error; int error;
DBC* tmp_cursor1 = NULL; DBC* tmp_cursor1 = NULL;
...@@ -3516,7 +3514,6 @@ int ha_tokudb::is_index_unique(bool* is_unique, DB_TXN* txn, DB* db, KEY* key_in ...@@ -3516,7 +3514,6 @@ int ha_tokudb::is_index_unique(bool* is_unique, DB_TXN* txn, DB* db, KEY* key_in
error = 0; error = 0;
cleanup: cleanup:
while (ha_tokudb_is_index_unique_wait) sleep(1); // debug
if (tmp_cursor1) { if (tmp_cursor1) {
tmp_cursor1->c_close(tmp_cursor1); tmp_cursor1->c_close(tmp_cursor1);
tmp_cursor1 = NULL; tmp_cursor1 = NULL;
...@@ -3872,8 +3869,6 @@ out: ...@@ -3872,8 +3869,6 @@ out:
return error; return error;
} }
volatile int ha_tokudb_write_row_wait = 0; // debug
// //
// Stores a row in the table, called when handling an INSERT query // Stores a row in the table, called when handling an INSERT query
// Parameters: // Parameters:
...@@ -3884,7 +3879,6 @@ volatile int ha_tokudb_write_row_wait = 0; // debug ...@@ -3884,7 +3879,6 @@ volatile int ha_tokudb_write_row_wait = 0; // debug
// //
int ha_tokudb::write_row(uchar * record) { int ha_tokudb::write_row(uchar * record) {
TOKUDB_DBUG_ENTER("ha_tokudb::write_row"); TOKUDB_DBUG_ENTER("ha_tokudb::write_row");
while (ha_tokudb_write_row_wait) sleep(1); // debug
DBT row, prim_key; DBT row, prim_key;
int error; int error;
...@@ -4459,8 +4453,6 @@ void ha_tokudb::invalidate_icp() { ...@@ -4459,8 +4453,6 @@ void ha_tokudb::invalidate_icp() {
icp_went_out_of_range = false; icp_went_out_of_range = false;
} }
volatile int ha_tokudb_index_init_wait = 0; // debug
// //
// Initializes local cursor on DB with index keynr // Initializes local cursor on DB with index keynr
// Parameters: // Parameters:
...@@ -4472,7 +4464,6 @@ volatile int ha_tokudb_index_init_wait = 0; // debug ...@@ -4472,7 +4464,6 @@ volatile int ha_tokudb_index_init_wait = 0; // debug
// //
int ha_tokudb::index_init(uint keynr, bool sorted) { int ha_tokudb::index_init(uint keynr, bool sorted) {
TOKUDB_DBUG_ENTER("ha_tokudb::index_init %p %d", this, keynr); TOKUDB_DBUG_ENTER("ha_tokudb::index_init %p %d", this, keynr);
while (ha_tokudb_index_init_wait) sleep(1); // debug
int error; int error;
THD* thd = ha_thd(); THD* thd = ha_thd();
...@@ -5410,8 +5401,6 @@ int ha_tokudb::index_prev(uchar * buf) { ...@@ -5410,8 +5401,6 @@ int ha_tokudb::index_prev(uchar * buf) {
TOKUDB_DBUG_RETURN(error); TOKUDB_DBUG_RETURN(error);
} }
volatile int tokudb_index_first_wait = 0;
// //
// Reads the first row from the active index (cursor) into buf, and advances cursor // Reads the first row from the active index (cursor) into buf, and advances cursor
// Parameters: // Parameters:
...@@ -5433,8 +5422,6 @@ int ha_tokudb::index_first(uchar * buf) { ...@@ -5433,8 +5422,6 @@ int ha_tokudb::index_first(uchar * buf) {
ha_statistic_increment(&SSV::ha_read_first_count); ha_statistic_increment(&SSV::ha_read_first_count);
while (tokudb_index_first_wait) sleep(1);
info.ha = this; info.ha = this;
info.buf = buf; info.buf = buf;
info.keynr = tokudb_active_index; info.keynr = tokudb_active_index;
...@@ -6837,8 +6824,6 @@ static inline enum row_type row_format_to_row_type(srv_row_format_t row_format) ...@@ -6837,8 +6824,6 @@ static inline enum row_type row_format_to_row_type(srv_row_format_t row_format)
return ROW_TYPE_DEFAULT; return ROW_TYPE_DEFAULT;
} }
volatile int tokudb_create_wait = 0;
// //
// Creates a new table // Creates a new table
// Parameters: // Parameters:
...@@ -6851,7 +6836,7 @@ volatile int tokudb_create_wait = 0; ...@@ -6851,7 +6836,7 @@ volatile int tokudb_create_wait = 0;
// //
int ha_tokudb::create(const char *name, TABLE * form, HA_CREATE_INFO * create_info) { int ha_tokudb::create(const char *name, TABLE * form, HA_CREATE_INFO * create_info) {
TOKUDB_DBUG_ENTER("ha_tokudb::create %p %s", this, name); TOKUDB_DBUG_ENTER("ha_tokudb::create %p %s", this, name);
while (tokudb_create_wait) sleep(1);
int error; int error;
DB *status_block = NULL; DB *status_block = NULL;
uint version; uint version;
...@@ -7522,10 +7507,7 @@ bool ha_tokudb::is_auto_inc_singleton(){ ...@@ -7522,10 +7507,7 @@ bool ha_tokudb::is_auto_inc_singleton(){
return false; return false;
} }
volatile int ha_tokudb_tokudb_add_index_wait = 0; // debug
volatile int ha_tokudb_build_index_wait = 0; // debug
//
// Internal function called by ha_tokudb::add_index and ha_tokudb::alter_table_phase2 // Internal function called by ha_tokudb::add_index and ha_tokudb::alter_table_phase2
// With a transaction, drops dictionaries associated with indexes in key_num // With a transaction, drops dictionaries associated with indexes in key_num
// //
...@@ -7553,8 +7535,6 @@ int ha_tokudb::tokudb_add_index( ...@@ -7553,8 +7535,6 @@ int ha_tokudb::tokudb_add_index(
TOKUDB_DBUG_ENTER("ha_tokudb::tokudb_add_index"); TOKUDB_DBUG_ENTER("ha_tokudb::tokudb_add_index");
assert(txn); assert(txn);
while (ha_tokudb_tokudb_add_index_wait) sleep(1); // debug
int error; int error;
uint curr_index = 0; uint curr_index = 0;
DBC* tmp_cursor = NULL; DBC* tmp_cursor = NULL;
...@@ -7707,8 +7687,6 @@ int ha_tokudb::tokudb_add_index( ...@@ -7707,8 +7687,6 @@ int ha_tokudb::tokudb_add_index(
thd_progress_init(thd, 1); thd_progress_init(thd, 1);
#endif #endif
while (ha_tokudb_build_index_wait) sleep(1); // debug
error = indexer->build(indexer); error = indexer->build(indexer);
if (error) { goto cleanup; } if (error) { goto cleanup; }
...@@ -7961,8 +7939,6 @@ void ha_tokudb::restore_add_index(TABLE* table_arg, uint num_of_keys, bool incre ...@@ -7961,8 +7939,6 @@ void ha_tokudb::restore_add_index(TABLE* table_arg, uint num_of_keys, bool incre
} }
} }
volatile int ha_tokudb_drop_indexes_wait = 0; // debug
// //
// Internal function called by ha_tokudb::prepare_drop_index and ha_tokudb::alter_table_phase2 // Internal function called by ha_tokudb::prepare_drop_index and ha_tokudb::alter_table_phase2
// With a transaction, drops dictionaries associated with indexes in key_num // With a transaction, drops dictionaries associated with indexes in key_num
...@@ -7971,8 +7947,6 @@ int ha_tokudb::drop_indexes(TABLE *table_arg, uint *key_num, uint num_of_keys, K ...@@ -7971,8 +7947,6 @@ int ha_tokudb::drop_indexes(TABLE *table_arg, uint *key_num, uint num_of_keys, K
TOKUDB_DBUG_ENTER("ha_tokudb::drop_indexes"); TOKUDB_DBUG_ENTER("ha_tokudb::drop_indexes");
assert(txn); assert(txn);
while (ha_tokudb_drop_indexes_wait) sleep(1); // debug
int error = 0; int error = 0;
for (uint i = 0; i < num_of_keys; i++) { for (uint i = 0; i < num_of_keys; i++) {
uint curr_index = key_num[i]; uint curr_index = key_num[i];
...@@ -8110,12 +8084,9 @@ cleanup: ...@@ -8110,12 +8084,9 @@ cleanup:
return error; return error;
} }
volatile int ha_tokudb_truncate_wait = 0; // debug
// for 5.5 // for 5.5
int ha_tokudb::truncate() { int ha_tokudb::truncate() {
TOKUDB_DBUG_ENTER("truncate"); TOKUDB_DBUG_ENTER("truncate");
while (ha_tokudb_truncate_wait) sleep(1); // debug
int error = delete_all_rows_internal(); int error = delete_all_rows_internal();
TOKUDB_DBUG_RETURN(error); TOKUDB_DBUG_RETURN(error);
} }
......
...@@ -88,7 +88,6 @@ PATENT RIGHTS GRANT: ...@@ -88,7 +88,6 @@ PATENT RIGHTS GRANT:
#ident "Copyright (c) 2007-2013 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007-2013 Tokutek Inc. All rights reserved."
#ident "The technology is licensed by the Massachusetts Institute of Technology, Rutgers State University of New Jersey, and the Research Foundation of State University of New York at Stony Brook under United States of America Serial No. 11/760379 and to the patents and/or patent applications resulting from it." #ident "The technology is licensed by the Massachusetts Institute of Technology, Rutgers State University of New Jersey, and the Research Foundation of State University of New York at Stony Brook under United States of America Serial No. 11/760379 and to the patents and/or patent applications resulting from it."
volatile int ha_tokudb_analyze_wait = 0; // debug
struct analyze_progress_extra { struct analyze_progress_extra {
THD *thd; THD *thd;
...@@ -129,7 +128,6 @@ static int analyze_progress(void *v_extra, uint64_t rows) { ...@@ -129,7 +128,6 @@ static int analyze_progress(void *v_extra, uint64_t rows) {
int ha_tokudb::analyze(THD *thd, HA_CHECK_OPT *check_opt) { int ha_tokudb::analyze(THD *thd, HA_CHECK_OPT *check_opt) {
TOKUDB_DBUG_ENTER("ha_tokudb::analyze"); TOKUDB_DBUG_ENTER("ha_tokudb::analyze");
while (ha_tokudb_analyze_wait) sleep(1); // debug concurrency issues
uint64_t rec_per_key[table_share->key_parts]; uint64_t rec_per_key[table_share->key_parts];
int result = HA_ADMIN_OK; int result = HA_ADMIN_OK;
DB_TXN *txn = transaction; DB_TXN *txn = transaction;
...@@ -192,12 +190,9 @@ static int hot_poll_fun(void *extra, float progress) { ...@@ -192,12 +190,9 @@ static int hot_poll_fun(void *extra, float progress) {
return 0; return 0;
} }
volatile int ha_tokudb_optimize_wait = 0; // debug
// flatten all DB's in this table, to do so, peform hot optimize on each db // flatten all DB's in this table, to do so, peform hot optimize on each db
int ha_tokudb::optimize(THD * thd, HA_CHECK_OPT * check_opt) { int ha_tokudb::optimize(THD * thd, HA_CHECK_OPT * check_opt) {
TOKUDB_DBUG_ENTER("ha_tokudb::optimize"); TOKUDB_DBUG_ENTER("ha_tokudb::optimize");
while (ha_tokudb_optimize_wait) sleep(1); // debug
int error; int error;
uint curr_num_DBs = table->s->keys + tokudb_test(hidden_primary_key); uint curr_num_DBs = table->s->keys + tokudb_test(hidden_primary_key);
...@@ -266,11 +261,8 @@ static void ha_tokudb_check_info(THD *thd, TABLE *table, const char *msg) { ...@@ -266,11 +261,8 @@ static void ha_tokudb_check_info(THD *thd, TABLE *table, const char *msg) {
} }
} }
volatile int ha_tokudb_check_wait = 0; // debug
int ha_tokudb::check(THD *thd, HA_CHECK_OPT *check_opt) { int ha_tokudb::check(THD *thd, HA_CHECK_OPT *check_opt) {
TOKUDB_DBUG_ENTER("check"); TOKUDB_DBUG_ENTER("check");
while (ha_tokudb_check_wait) sleep(1); // debug
const char *old_proc_info = thd->proc_info; const char *old_proc_info = thd->proc_info;
thd_proc_info(thd, "tokudb::check"); thd_proc_info(thd, "tokudb::check");
......
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