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