244
Send data to callback function .
247
UNIV_INTERN void dict_print_with_callback(dict_print_callback func, void *func_arg)
249
dict_table_t* sys_tables;
250
dict_index_t* sys_index;
257
/* Enlarge the fatal semaphore wait timeout during the InnoDB table
260
mutex_enter(&kernel_mutex);
261
srv_fatal_semaphore_wait_threshold += 7200; /* 2 hours */
262
mutex_exit(&kernel_mutex);
264
mutex_enter(&(dict_sys->mutex));
268
sys_tables = dict_table_get_low("SYS_TABLES");
269
sys_index = UT_LIST_GET_FIRST(sys_tables->indexes);
271
btr_pcur_open_at_index_side(TRUE, sys_index, BTR_SEARCH_LEAF, &pcur,
274
btr_pcur_move_to_next_user_rec(&pcur, &mtr);
276
rec = btr_pcur_get_rec(&pcur);
278
if (!btr_pcur_is_on_user_rec(&pcur)) {
281
btr_pcur_close(&pcur);
284
mutex_exit(&(dict_sys->mutex));
286
/* Restore the fatal semaphore wait timeout */
288
mutex_enter(&kernel_mutex);
289
srv_fatal_semaphore_wait_threshold -= 7200; /* 2 hours */
290
mutex_exit(&kernel_mutex);
295
field = rec_get_nth_field_old(rec, 0, &len);
297
if (!rec_get_deleted_flag(rec, 0)) {
301
char* table_name = mem_strdupl((char*) field, len);
303
btr_pcur_store_position(&pcur, &mtr);
307
func(func_arg, table_name);
308
mem_free(table_name);
312
btr_pcur_restore_position(BTR_SEARCH_LEAF, &pcur, &mtr);
243
318
/********************************************************************//**
244
319
Determine the flags of a table described in SYS_TABLES.
245
320
@return compressed page size in kilobytes; or 0 if the tablespace is