107
106
static my_bool safe_hash_init(SAFE_HASH *hash, uint elements,
111
109
if (hash_init(&hash->hash, &my_charset_bin, elements,
112
110
0, 0, (hash_get_key) safe_hash_entry_get,
113
111
(void (*)(void*)) safe_hash_entry_free, 0))
118
116
my_rwlock_init(&hash->mutex, 0);
119
117
hash->default_value= default_value;