diff options
author | sergefp@mysql.com <> | 2005-04-29 01:16:32 +0400 |
---|---|---|
committer | sergefp@mysql.com <> | 2005-04-29 01:16:32 +0400 |
commit | a7a1d4dc1e3f24ff23db7cb11c9ffda0ce12981c (patch) | |
tree | 7eeb44b398d001527e547842929d2a9e2063d988 /sql/opt_range.h | |
parent | 254bb2570cbf27dd05fc22993f5b279e574dbb17 (diff) | |
download | mariadb-git-a7a1d4dc1e3f24ff23db7cb11c9ffda0ce12981c.tar.gz |
Fix for BUG#10244:
Make get_quick_select_for_ref() accept estimated # records as parameter and
set QUICK_RANGE_SELECT::records, as this value is used to allocate buffers
in Multi-Range Read.
Diffstat (limited to 'sql/opt_range.h')
-rw-r--r-- | sql/opt_range.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sql/opt_range.h b/sql/opt_range.h index 97d646cedbe..71680b5a1fc 100644 --- a/sql/opt_range.h +++ b/sql/opt_range.h @@ -281,7 +281,8 @@ protected: friend class TRP_ROR_INTERSECT; friend QUICK_RANGE_SELECT *get_quick_select_for_ref(THD *thd, TABLE *table, - struct st_table_ref *ref); + struct st_table_ref *ref, + ha_rows records); friend bool get_quick_keys(struct st_qsel_param *param, QUICK_RANGE_SELECT *quick,KEY_PART *key, SEL_ARG *key_tree, @@ -709,5 +710,6 @@ public: }; QUICK_RANGE_SELECT *get_quick_select_for_ref(THD *thd, TABLE *table, - struct st_table_ref *ref); + struct st_table_ref *ref, + ha_rows records); #endif |