diff options
author | monty@donna.mysql.com <> | 2000-09-14 02:39:07 +0300 |
---|---|---|
committer | monty@donna.mysql.com <> | 2000-09-14 02:39:07 +0300 |
commit | b581f17be222af50b399242353fd6df31b6b05d5 (patch) | |
tree | 47d3199e561726437875c3247556ac5797525366 /myisammrg/myrg_rlast.c | |
parent | 7e543b4d4b67b7108d72bf1f1a8b22f99937c886 (diff) | |
download | mariadb-git-b581f17be222af50b399242353fd6df31b6b05d5.tar.gz |
Fixes for MERGE TABLES and HEAP tables
Diffstat (limited to 'myisammrg/myrg_rlast.c')
-rw-r--r-- | myisammrg/myrg_rlast.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/myisammrg/myrg_rlast.c b/myisammrg/myrg_rlast.c index ab7aacda716..f41844dfd5c 100644 --- a/myisammrg/myrg_rlast.c +++ b/myisammrg/myrg_rlast.c @@ -24,22 +24,22 @@ int myrg_rlast(MYRG_INFO *info, byte *buf, int inx) MI_INFO *mi; int err; - if (_myrg_init_queue(info,inx,HA_READ_KEY_OR_PREV)) + if (_myrg_init_queue(info,inx, HA_READ_KEY_OR_PREV)) return my_errno; for (table=info->open_tables ; table < info->end_table ; table++) { - err=mi_rlast(table->table,NULL,inx); - info->last_used_table=table; - - if (err == HA_ERR_END_OF_FILE) - continue; - if (err) + if ((err=mi_rlast(table->table,NULL,inx))) + { + if (err == HA_ERR_END_OF_FILE) + continue; return err; - + } /* adding to queue */ queue_insert(&(info->by_key),(byte *)table); } + /* We have done a read in all tables */ + info->last_used_table=table; if (!info->by_key.elements) return HA_ERR_END_OF_FILE; |