405
345
int _mi_readinfo(register MI_INFO *info, int lock_type, int check_keybuffer)
409
347
if (info->lock_type == F_UNLCK)
411
349
MYISAM_SHARE *share=info->s;
414
if (my_lock(share->kfile,lock_type,0L,F_TO_EOF,
417
352
if (mi_state_info_read_dsk(share->kfile, &share->state, 1))
419
354
int error=my_errno ? my_errno : -1;
420
VOID(my_lock(share->kfile,F_UNLCK,0L,F_TO_EOF,
428
361
info->invalidator=info->s->invalidator;
430
363
else if (lock_type == F_WRLCK && info->lock_type == F_RDLCK)
432
365
my_errno=EACCES; /* Not allowed to change */