24
24
#include <mystrings/m_ctype.h>
25
25
#include <mysys/my_tree.h>
26
26
#include <mysys/queues.h>
29
28
/* lock table by F_UNLCK, F_RDLCK or F_WRLCK */
31
30
int mi_lock_database(MI_INFO *info, int lock_type)
35
34
MYISAM_SHARE *share=info->s;
38
37
if (share->options & HA_OPTION_READ_ONLY_DATA ||
39
38
info->lock_type == lock_type)