summaryrefslogtreecommitdiff
path: root/sql/records.cc
diff options
context:
space:
mode:
authorunknown <sergefp@mysql.com>2004-12-29 16:07:27 +0300
committerunknown <sergefp@mysql.com>2004-12-29 16:07:27 +0300
commitf47d9b5af029a0f5cf2dfc5d05b348ecc7f35671 (patch)
tree0f4289bdbcd2b74d567b98fa16c271b230a8e0a2 /sql/records.cc
parente3c7697431c144215af2f752d5c23b5b06e29982 (diff)
downloadmariadb-git-f47d9b5af029a0f5cf2dfc5d05b348ecc7f35671.tar.gz
Post WL#2126 fixes:
* remove get_next_init and move its functionality to QUICK_RANGE_SELECT::reset() * added more comments * added empty FT_SELECT::reset() sql/opt_range.cc: Post WL#2126 fixes: remove get_next_init and move its functionality to QUICK_RANGE_SELECT::reset() Add needed error checks since QUICK_RANGE_SELECT::reset can fail now. sql/opt_range.h: Post WL#2126 fixes: * remove get_next_init and move its functionality to QUICK_RANGE_SELECT::reset() * added more comments * added empty FT_SELECT::reset() since QUICK_RANGE_SELECT::reset() it was using wasn't doing anything useful. sql/records.cc: Post WL#2126 fixes: * remove redundant get_next_init call
Diffstat (limited to 'sql/records.cc')
-rw-r--r--sql/records.cc11
1 files changed, 0 insertions, 11 deletions
diff --git a/sql/records.cc b/sql/records.cc
index 3c0143d2307..5073feed778 100644
--- a/sql/records.cc
+++ b/sql/records.cc
@@ -100,19 +100,8 @@ void init_read_record(READ_RECORD *info,THD *thd, TABLE *table,
}
else if (select && select->quick)
{
- int error;
DBUG_PRINT("info",("using rr_quick"));
-
- if (!table->file->inited)
- table->file->ha_index_init(select->quick->index);
info->read_record=rr_quick;
-
- if ((error= select->quick->get_next_init()))
- {
- /* Cannot return error code here. Instead print to error log. */
- table->file->print_error(error,MYF(ME_NOREFRESH));
- thd->fatal_error();
- }
}
else if (table->sort.record_pointers)
{