345
402
int _mi_readinfo(register MI_INFO *info, int lock_type, int check_keybuffer)
347
406
if (info->lock_type == F_UNLCK)
349
408
MYISAM_SHARE *share=info->s;
411
if (my_lock(share->kfile,lock_type,0L,F_TO_EOF,
352
414
if (mi_state_info_read_dsk(share->kfile, &share->state, 1))
354
416
int error=my_errno ? my_errno : -1;
417
VOID(my_lock(share->kfile,F_UNLCK,0L,F_TO_EOF,
361
425
info->invalidator=info->s->invalidator;
363
427
else if (lock_type == F_WRLCK && info->lock_type == F_RDLCK)
365
429
my_errno=EACCES; /* Not allowed to change */