MCPcopy Create free account
hub / github.com/Meituan-Dianping/SQLAdvisor / my_dboptions_cache_init

Function my_dboptions_cache_init

sql/sql_db.cc:111–128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

109*/
110
111bool my_dboptions_cache_init(void)
112{
113#ifdef HAVE_PSI_INTERFACE
114 init_database_names_psi_keys();
115#endif
116
117 bool error= 0;
118 mysql_rwlock_init(key_rwlock_LOCK_dboptions, &LOCK_dboptions);
119 if (!dboptions_init)
120 {
121 dboptions_init= 1;
122 error= my_hash_init(&dboptions, lower_case_table_names ?
123 &my_charset_bin : system_charset_info,
124 32, 0, 0, (my_hash_get_key) dboptions_get_key,
125 free_dbopt,0);
126 }
127 return error;
128}
129
130
131

Callers 1

mysqld.ccFile · 0.85

Calls 1

Tested by

no test coverage detected