28
28
Allows "partial read" errors in the record header (when READING_HEADER flag
29
29
is set) - unread part is zero'ed
32
32
as these reads will be cached by OS cache (and my_pread is always atomic)
38
int _mi_read_cache(IO_CACHE *info, unsigned char *buff, my_off_t pos, uint32_t length,
44
int _mi_read_cache(internal::io_cache_st *info, unsigned char *buff, internal::my_off_t pos, uint32_t length,
41
47
uint32_t read_length,in_buff_length;
43
49
unsigned char *in_buff_pos;
45
51
if (pos < info->pos_in_file)
49
55
read_length=(uint) (info->pos_in_file-pos);
51
57
if (my_pread(info->file,buff,read_length,pos,MYF(MY_NABP)))