| 109 | */ |
| 110 | |
| 111 | bool 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 |
no test coverage detected