26 if (_myrg_init_queue(info,inx, HA_READ_KEY_OR_PREV))
29 for (table=info->open_tables ; table < info->end_table ; table++)
31 if ((err=mi_rlast(table->table,NULL,inx)))
33 if (err == HA_ERR_END_OF_FILE)
38 queue_insert(&(info->by_key),(uchar *)table);
41 info->last_used_table=
table;
43 if (!info->by_key.elements)
44 return HA_ERR_END_OF_FILE;
46 mi=(info->current_table=(
MYRG_TABLE *)queue_top(&(info->by_key)))->table;
47 return _myrg_mi_read_record(mi,buf);