summaryrefslogtreecommitdiff
path: root/merge/rrnd.c
diff options
context:
space:
mode:
Diffstat (limited to 'merge/rrnd.c')
-rw-r--r--merge/rrnd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/merge/rrnd.c b/merge/rrnd.c
index 15a50c0b89f..0abd72a3edd 100644
--- a/merge/rrnd.c
+++ b/merge/rrnd.c
@@ -82,7 +82,7 @@ int mrg_rrnd(MRG_INFO *info,byte *buf,mrg_off_t filepos)
}
}
info->current_table=find_table(info->open_tables,
- info->last_used_table,filepos);
+ info->end_table,filepos);
isam_info=info->current_table->table;
isam_info->update&= HA_STATE_CHANGED;
return ((*isam_info->s->read_rnd)(isam_info,(byte*) buf,