136
134
void mi_change_key_cache(KEY_CACHE *old_key_cache,
137
135
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);
147
146
MYISAM_SHARE *share= info->s;
148
147
if (share->key_cache == old_key_cache)
149
148
mi_assign_to_key_cache(info, UINT64_MAX, new_key_cache);