27 static PSI_thread_key key;
28 static PSI_thread_info info= { &key,
"setup", PSI_FLAG_GLOBAL };
36 psi->register_thread(
"performance_schema", &info, 1);
37 PSI_thread *psi_thread= psi->new_thread(key, NULL, 0);
38 if (psi_thread == NULL)
42 psi->set_thread(psi_thread);
44 String percent(
"%", 1, &my_charset_utf8_bin);
46 insert_setup_actor(&percent, &percent, &percent);
49 String mysql_db(
"mysql", 5, &my_charset_utf8_bin);
50 insert_setup_object(OBJECT_TYPE_TABLE, &mysql_db, &percent,
false,
false);
53 String PS_db(
"performance_schema", 18, &my_charset_utf8_bin);
54 String IS_db(
"information_schema", 18, &my_charset_utf8_bin);
55 insert_setup_object(OBJECT_TYPE_TABLE, &PS_db, &percent,
false,
false);
56 insert_setup_object(OBJECT_TYPE_TABLE, &IS_db, &percent,
false,
false);
59 insert_setup_object(OBJECT_TYPE_TABLE, &percent, &percent,
true,
true);
61 psi->delete_current_thread();