diff options
Diffstat (limited to 'storage/maria/ma_cache.c')
-rw-r--r-- | storage/maria/ma_cache.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/storage/maria/ma_cache.c b/storage/maria/ma_cache.c index 829189baeed..35926d37e03 100644 --- a/storage/maria/ma_cache.c +++ b/storage/maria/ma_cache.c @@ -61,7 +61,7 @@ my_bool _ma_read_cache(MARIA_HA *handler, IO_CACHE *info, uchar *buff, (my_off_t) (info->read_end - info->request_pos)) { in_buff_pos=info->request_pos+(uint) offset; - in_buff_length= min(length,(size_t) (info->read_end-in_buff_pos)); + in_buff_length= MY_MIN(length,(size_t) (info->read_end-in_buff_pos)); memcpy(buff,info->request_pos+(uint) offset,(size_t) in_buff_length); if (!(length-=in_buff_length)) DBUG_RETURN(0); |