Commit cb80f4ea authored by Rich Prohaska's avatar Rich Prohaska

#146 add debug trace to tokudb info schema tables

parent 7e153bc5
...@@ -1390,6 +1390,7 @@ static int tokudb_file_map_fill_table(THD *thd, TABLE_LIST *tables, Item *cond) ...@@ -1390,6 +1390,7 @@ static int tokudb_file_map_fill_table(THD *thd, TABLE_LIST *tables, Item *cond)
#else #else
static int tokudb_file_map_fill_table(THD *thd, TABLE_LIST *tables, COND *cond) { static int tokudb_file_map_fill_table(THD *thd, TABLE_LIST *tables, COND *cond) {
#endif #endif
TOKUDB_DBUG_ENTER("%s", __FUNCTION__);
int error; int error;
TABLE *table = tables->table; TABLE *table = tables->table;
...@@ -1403,7 +1404,7 @@ static int tokudb_file_map_fill_table(THD *thd, TABLE_LIST *tables, COND *cond) ...@@ -1403,7 +1404,7 @@ static int tokudb_file_map_fill_table(THD *thd, TABLE_LIST *tables, COND *cond)
} }
rw_unlock(&tokudb_hton_initialized_lock); rw_unlock(&tokudb_hton_initialized_lock);
return error; TOKUDB_DBUG_RETURN(error);
} }
static int tokudb_file_map_init(void *p) { static int tokudb_file_map_init(void *p) {
...@@ -1534,6 +1535,7 @@ static int tokudb_fractal_tree_info_fill_table(THD *thd, TABLE_LIST *tables, Ite ...@@ -1534,6 +1535,7 @@ static int tokudb_fractal_tree_info_fill_table(THD *thd, TABLE_LIST *tables, Ite
#else #else
static int tokudb_fractal_tree_info_fill_table(THD *thd, TABLE_LIST *tables, COND *cond) { static int tokudb_fractal_tree_info_fill_table(THD *thd, TABLE_LIST *tables, COND *cond) {
#endif #endif
TOKUDB_DBUG_ENTER("%s", __FUNCTION__);
int error; int error;
TABLE *table = tables->table; TABLE *table = tables->table;
...@@ -1550,7 +1552,7 @@ static int tokudb_fractal_tree_info_fill_table(THD *thd, TABLE_LIST *tables, CON ...@@ -1550,7 +1552,7 @@ static int tokudb_fractal_tree_info_fill_table(THD *thd, TABLE_LIST *tables, CON
//3938: unlock the status flag lock //3938: unlock the status flag lock
rw_unlock(&tokudb_hton_initialized_lock); rw_unlock(&tokudb_hton_initialized_lock);
return error; TOKUDB_DBUG_RETURN(error);
} }
static int tokudb_fractal_tree_info_init(void *p) { static int tokudb_fractal_tree_info_init(void *p) {
...@@ -1745,6 +1747,7 @@ static int tokudb_fractal_tree_block_map_fill_table(THD *thd, TABLE_LIST *tables ...@@ -1745,6 +1747,7 @@ static int tokudb_fractal_tree_block_map_fill_table(THD *thd, TABLE_LIST *tables
#else #else
static int tokudb_fractal_tree_block_map_fill_table(THD *thd, TABLE_LIST *tables, COND *cond) { static int tokudb_fractal_tree_block_map_fill_table(THD *thd, TABLE_LIST *tables, COND *cond) {
#endif #endif
TOKUDB_DBUG_ENTER("%s", __FUNCTION__);
int error; int error;
TABLE *table = tables->table; TABLE *table = tables->table;
...@@ -1761,7 +1764,7 @@ static int tokudb_fractal_tree_block_map_fill_table(THD *thd, TABLE_LIST *tables ...@@ -1761,7 +1764,7 @@ static int tokudb_fractal_tree_block_map_fill_table(THD *thd, TABLE_LIST *tables
//3938: unlock the status flag lock //3938: unlock the status flag lock
rw_unlock(&tokudb_hton_initialized_lock); rw_unlock(&tokudb_hton_initialized_lock);
return error; TOKUDB_DBUG_RETURN(error);
} }
static int tokudb_fractal_tree_block_map_init(void *p) { static int tokudb_fractal_tree_block_map_init(void *p) {
...@@ -1890,6 +1893,7 @@ static int tokudb_trx_fill_table(THD *thd, TABLE_LIST *tables, Item *cond) { ...@@ -1890,6 +1893,7 @@ static int tokudb_trx_fill_table(THD *thd, TABLE_LIST *tables, Item *cond) {
#else #else
static int tokudb_trx_fill_table(THD *thd, TABLE_LIST *tables, COND *cond) { static int tokudb_trx_fill_table(THD *thd, TABLE_LIST *tables, COND *cond) {
#endif #endif
TOKUDB_DBUG_ENTER("%s", __FUNCTION__);
int error; int error;
rw_rdlock(&tokudb_hton_initialized_lock); rw_rdlock(&tokudb_hton_initialized_lock);
...@@ -1903,7 +1907,7 @@ static int tokudb_trx_fill_table(THD *thd, TABLE_LIST *tables, COND *cond) { ...@@ -1903,7 +1907,7 @@ static int tokudb_trx_fill_table(THD *thd, TABLE_LIST *tables, COND *cond) {
} }
rw_unlock(&tokudb_hton_initialized_lock); rw_unlock(&tokudb_hton_initialized_lock);
return error; TOKUDB_DBUG_RETURN(error);
} }
static int tokudb_trx_init(void *p) { static int tokudb_trx_init(void *p) {
...@@ -1960,6 +1964,7 @@ static int tokudb_lock_waits_fill_table(THD *thd, TABLE_LIST *tables, Item *cond ...@@ -1960,6 +1964,7 @@ static int tokudb_lock_waits_fill_table(THD *thd, TABLE_LIST *tables, Item *cond
#else #else
static int tokudb_lock_waits_fill_table(THD *thd, TABLE_LIST *tables, COND *cond) { static int tokudb_lock_waits_fill_table(THD *thd, TABLE_LIST *tables, COND *cond) {
#endif #endif
TOKUDB_DBUG_ENTER("%s", __FUNCTION__);
int error; int error;
rw_rdlock(&tokudb_hton_initialized_lock); rw_rdlock(&tokudb_hton_initialized_lock);
...@@ -1973,7 +1978,7 @@ static int tokudb_lock_waits_fill_table(THD *thd, TABLE_LIST *tables, COND *cond ...@@ -1973,7 +1978,7 @@ static int tokudb_lock_waits_fill_table(THD *thd, TABLE_LIST *tables, COND *cond
} }
rw_unlock(&tokudb_hton_initialized_lock); rw_unlock(&tokudb_hton_initialized_lock);
return error; TOKUDB_DBUG_RETURN(error);
} }
static int tokudb_lock_waits_init(void *p) { static int tokudb_lock_waits_init(void *p) {
...@@ -2036,6 +2041,7 @@ static int tokudb_locks_fill_table(THD *thd, TABLE_LIST *tables, Item *cond) { ...@@ -2036,6 +2041,7 @@ static int tokudb_locks_fill_table(THD *thd, TABLE_LIST *tables, Item *cond) {
#else #else
static int tokudb_locks_fill_table(THD *thd, TABLE_LIST *tables, COND *cond) { static int tokudb_locks_fill_table(THD *thd, TABLE_LIST *tables, COND *cond) {
#endif #endif
TOKUDB_DBUG_ENTER("%s", __FUNCTION__);
int error; int error;
rw_rdlock(&tokudb_hton_initialized_lock); rw_rdlock(&tokudb_hton_initialized_lock);
...@@ -2049,7 +2055,7 @@ static int tokudb_locks_fill_table(THD *thd, TABLE_LIST *tables, COND *cond) { ...@@ -2049,7 +2055,7 @@ static int tokudb_locks_fill_table(THD *thd, TABLE_LIST *tables, COND *cond) {
} }
rw_unlock(&tokudb_hton_initialized_lock); rw_unlock(&tokudb_hton_initialized_lock);
return error; TOKUDB_DBUG_RETURN(error);
} }
static int tokudb_locks_init(void *p) { static int tokudb_locks_init(void *p) {
......
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