[Commits] 1380463: MDEV-6735 Range checked for each record used with key

elenst at montyprogram.com elenst at montyprogram.com
Fri Mar 20 15:48:11 EET 2015


revision-id: 138046368c5354c9f364167627f39408bef95fa7
parent(s): 9253064c0547b16b867565a05f8305780c2ecc34
committer: Elena Stepanova
branch nick: 5.5
timestamp: 2015-03-20 15:45:49 +0200
message:

MDEV-6735 Range checked for each record used with key

Patch contributed by Daniel Black
Remove records >= 100L test to use a Range checked for each record  over a range join fixing mdev 7786/6735

---
 sql/sql_select.cc |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/sql/sql_select.cc b/sql/sql_select.cc
index 8a53b98..01c811b 100644
--- a/sql/sql_select.cc
+++ b/sql/sql_select.cc
@@ -9016,9 +9016,7 @@ bool TABLE_LIST::is_active_sjm()
               !sel->needed_reg.is_subset(tab->checked_keys))
 	  {
 	    tab->use_quick= (!sel->needed_reg.is_clear_all() &&
-			     (sel->quick_keys.is_clear_all() ||
-			      (sel->quick &&
-			       (sel->quick->records >= 100L)))) ?
+			     sel->quick_keys.is_clear_all()) ?
 	      2 : 1;
 	    sel->read_tables= used_tables & ~current_map;
             sel->quick_keys.clear_all();


More information about the commits mailing list