summaryrefslogtreecommitdiff
path: root/myisam/mi_cache.c
diff options
context:
space:
mode:
Diffstat (limited to 'myisam/mi_cache.c')
-rw-r--r--myisam/mi_cache.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/myisam/mi_cache.c b/myisam/mi_cache.c
index d392a9cc916..7b53f3d50ff 100644
--- a/myisam/mi_cache.c
+++ b/myisam/mi_cache.c
@@ -72,8 +72,8 @@ int _mi_read_cache(IO_CACHE *info, byte *buff, my_off_t pos, uint length,
in_buff_length=0;
if (flag & READING_NEXT || info->share)
{
- if (pos != (info->pos_in_file + (uint) (info->read_end -
- info->request_pos)))
+ if (pos != (info->pos_in_file +
+ (uint) (info->rc_end - info->rc_request_pos)))
{
info->pos_in_file=pos; /* Force start here */
info->read_pos=info->read_end=info->request_pos; /* Everything used */