diff options
author | Monty <monty@mariadb.org> | 2016-08-22 10:19:07 +0300 |
---|---|---|
committer | Monty <monty@mariadb.org> | 2016-08-22 10:19:07 +0300 |
commit | a5051cd3b2a46eb01ef9afdb1d798bdf6db715ab (patch) | |
tree | 65ea45a62c5f063c547bb25860c32753b3ec1670 /sql/opt_range.cc | |
parent | b51109693e6abb0e58256192a648cdd158d47615 (diff) | |
download | mariadb-git-a5051cd3b2a46eb01ef9afdb1d798bdf6db715ab.tar.gz |
Minor cleanups
- Remove impossible test in test_quick_select
- Ensure that is_fatal_error is set if we run out of stack space
Diffstat (limited to 'sql/opt_range.cc')
-rw-r--r-- | sql/opt_range.cc | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/sql/opt_range.cc b/sql/opt_range.cc index 18859c3ad37..e0ca43e6d72 100644 --- a/sql/opt_range.cc +++ b/sql/opt_range.cc @@ -3015,8 +3015,6 @@ int SQL_SELECT::test_quick_select(THD *thd, key_map keys_to_use, scan_time= read_time= DBL_MAX; if (limit < records) read_time= (double) records + scan_time + 1; // Force to use index - else if (read_time <= 2.0 && !force_quick_range) - DBUG_RETURN(0); /* No need for quick select */ possible_keys.clear_all(); @@ -3285,7 +3283,6 @@ int SQL_SELECT::test_quick_select(THD *thd, key_map keys_to_use, thd->no_errors=0; } - DBUG_EXECUTE("info", print_quick(quick, &needed_reg);); /* |