summaryrefslogtreecommitdiff
path: root/myisam/mi_statrec.c
diff options
context:
space:
mode:
Diffstat (limited to 'myisam/mi_statrec.c')
-rw-r--r--myisam/mi_statrec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/myisam/mi_statrec.c b/myisam/mi_statrec.c
index 2712c125f4e..4155a130fa7 100644
--- a/myisam/mi_statrec.c
+++ b/myisam/mi_statrec.c
@@ -221,7 +221,7 @@ int _mi_read_rnd_static_record(MI_INFO *info, byte *buf,
(skipp_deleted_blocks || !filepos))
{
cache_read=1; /* Read record using cache */
- cache_length=(uint) (info->rec_cache.rc_end - info->rec_cache.rc_pos);
+ cache_length=(uint) (info->rec_cache.read_end - info->rec_cache.read_pos);
}
else
info->rec_cache.seek_not_done=1; /* Filepos is changed */