summaryrefslogtreecommitdiff
path: root/sql/sql_class.cc
diff options
context:
space:
mode:
authorMichael Widenius <monty@askmonty.org>2011-08-29 20:38:21 +0300
committerMichael Widenius <monty@askmonty.org>2011-08-29 20:38:21 +0300
commit8b7a63b17f838c012f870e997a63d72c8d696fcf (patch)
tree59f7b91a3bf4ff58470171af93698e8cee5fd87a /sql/sql_class.cc
parent1a344b87e4d153d52468307cc886b5f424cb2dbf (diff)
downloadmariadb-git-8b7a63b17f838c012f870e997a63d72c8d696fcf.tar.gz
Added logging of all messages (also system warnings) one gets during a MyISAM recovery or auto-recovery.
sql/mysqld.cc: Log errors if thd->log_all_errors is set sql/sql_class.cc: Add log_all_errors sql/sql_class.h: Add log_all_errors storage/myisam/ha_myisam.cc: Write db and table name for all logged errors Log errors also during auto_recovery During auto_recovery, set thd->log_all_errors if log_warnings >2 to ensure that system errors are also logged to file
Diffstat (limited to 'sql/sql_class.cc')
-rw-r--r--sql/sql_class.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_class.cc b/sql/sql_class.cc
index 1ba6b7131d9..cf800384b17 100644
--- a/sql/sql_class.cc
+++ b/sql/sql_class.cc
@@ -662,7 +662,7 @@ THD::THD()
Open_tables_state(refresh_version), rli_fake(0),
lock_id(&main_lock_id),
user_time(0), in_sub_stmt(0),
- sql_log_bin_toplevel(false),
+ sql_log_bin_toplevel(false), log_all_errors(0),
binlog_table_maps(0), binlog_flags(0UL),
table_map_for_update(0),
arg_of_last_insert_id_function(FALSE),