diff options
Diffstat (limited to 'innobase/btr/btr0sea.c')
-rw-r--r-- | innobase/btr/btr0sea.c | 69 |
1 files changed, 0 insertions, 69 deletions
diff --git a/innobase/btr/btr0sea.c b/innobase/btr/btr0sea.c index 5c5ed934a9b..68f631dcba5 100644 --- a/innobase/btr/btr0sea.c +++ b/innobase/btr/btr0sea.c @@ -1498,75 +1498,6 @@ function_exit: } /************************************************************************ -Prints info of the search system. */ - -void -btr_search_print_info(void) -/*=======================*/ -{ - printf("SEARCH SYSTEM INFO\n"); - - rw_lock_x_lock(&btr_search_latch); - -/* ha_print_info(btr_search_sys->hash_index); */ - - rw_lock_x_unlock(&btr_search_latch); -} - -/************************************************************************ -Prints info of searches on an index. */ - -void -btr_search_index_print_info( -/*========================*/ - dict_index_t* index) /* in: index */ -{ - btr_search_t* info; - - printf("INDEX SEARCH INFO\n"); - - rw_lock_x_lock(&btr_search_latch); - - info = btr_search_get_info(index); - - printf("Searches %lu, hash succ %lu, fail %lu, patt succ %lu\n", - info->n_searches, info->n_hash_succ, info->n_hash_fail, - info->n_patt_succ); - - printf("Total of page cur short succ for all indexes %lu\n", - page_cur_short_succ); - rw_lock_x_unlock(&btr_search_latch); -} - -/************************************************************************ -Prints info of searches on a table. */ - -void -btr_search_table_print_info( -/*========================*/ - char* name) /* in: table name */ -{ - dict_table_t* table; - dict_index_t* index; - - mutex_enter(&(dict_sys->mutex)); - - table = dict_table_get_low(name); - - ut_a(table); - - mutex_exit(&(dict_sys->mutex)); - - index = dict_table_get_first_index(table); - - while (index) { - btr_search_index_print_info(index); - - index = dict_table_get_next_index(index); - } -} - -/************************************************************************ Validates the search system. */ ibool |