134
136
void mi_change_key_cache(KEY_CACHE *old_key_cache,
135
137
KEY_CACHE *new_key_cache)
140
140
Lock list to ensure that no one can close the table while we manipulate it
142
142
pthread_mutex_lock(&THR_LOCK_myisam);
146
147
MYISAM_SHARE *share= info->s;
147
148
if (share->key_cache == old_key_cache)
148
149
mi_assign_to_key_cache(info, UINT64_MAX, new_key_cache);