summaryrefslogtreecommitdiff
path: root/sql/records.cc
diff options
context:
space:
mode:
authorMichael Widenius <monty@askmonty.org>2010-09-23 19:30:44 +0300
committerMichael Widenius <monty@askmonty.org>2010-09-23 19:30:44 +0300
commit5ce4825b63997f6db76a12b0f764d175734699fb (patch)
tree0d2b9b95d1eb2c047e4337fda92a3aa58471e62a /sql/records.cc
parentec06ba24553d2d83b3a6a6bc4d8150910b01ee7c (diff)
downloadmariadb-git-5ce4825b63997f6db76a12b0f764d175734699fb.tar.gz
Fix usage of mysqld option --new, --old, --safe and --skip_new to not disable things that are proven stable or enable things that are not usefull.
sql/field.cc: Remove feature of 'new_mode' that was never implemtented in a newer MySQL version. sql/item_cmpfunc.cc: Boyer more is stable; Don't have to be protected by --skip-new anymore sql/mysqld.cc: Don't disable some proven stable functions with --skip-new sql/records.cc: Don't disable record caching with --safe-mode anymore sql/sql_delete.cc: Do fast truncate even if --skip-new or --safe is used sql/sql_parse.cc: Use always mysql_optimizer() for optimizer (instead of mysql_recreate_table() in case of --safe or --skip-new) sql/sql_select.cc: Don't disable 'only_eq_ref_tables' if --safe is used. sql/sql_yacc.yy: Removed not meaningfull test of --old
Diffstat (limited to 'sql/records.cc')
-rw-r--r--sql/records.cc1
1 files changed, 0 insertions, 1 deletions
diff --git a/sql/records.cc b/sql/records.cc
index 10d145fb1e2..4c75ec10f0a 100644
--- a/sql/records.cc
+++ b/sql/records.cc
@@ -216,7 +216,6 @@ bool init_read_record(READ_RECORD *info,THD *thd, TABLE *table,
*/
if (!disable_rr_cache &&
!table->sort.addon_field &&
- ! (specialflag & SPECIAL_SAFE_MODE) &&
thd->variables.read_rnd_buff_size &&
!(table->file->ha_table_flags() & HA_FAST_KEY_READ) &&
(table->db_stat & HA_READ_ONLY ||