summaryrefslogtreecommitdiff
path: root/sql/handler.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sql/handler.cc')
-rw-r--r--sql/handler.cc3
1 files changed, 0 insertions, 3 deletions
diff --git a/sql/handler.cc b/sql/handler.cc
index 1027a8b102d..35b0814ef79 100644
--- a/sql/handler.cc
+++ b/sql/handler.cc
@@ -3639,13 +3639,10 @@ void handler::print_error(int error, myf errflag)
if ((debug_assert_if_crashed_table ||
global_system_variables.log_warnings > 1))
{
- THD *thd= ha_thd();
/*
Log error to log before we crash or if extended warnings are requested
*/
errflag|= ME_NOREFRESH;
- if (thd && thd->is_optimistic_slave_worker())
- errflag|= ME_LOG_AS_WARN;
}
}