diff options
Diffstat (limited to 'sql/debug_sync.cc')
-rw-r--r-- | sql/debug_sync.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sql/debug_sync.cc b/sql/debug_sync.cc index 2ace83ca751..8b3412eb732 100644 --- a/sql/debug_sync.cc +++ b/sql/debug_sync.cc @@ -1451,7 +1451,8 @@ static void debug_sync_execute(THD *thd, st_debug_sync_action *action) const bool save_abort_on_warning= thd->abort_on_warning; thd->abort_on_warning= false; push_warning(thd, Sql_condition::WARN_LEVEL_WARN, - ER_DEBUG_SYNC_TIMEOUT, ER(ER_DEBUG_SYNC_TIMEOUT)); + ER_DEBUG_SYNC_TIMEOUT, + ER_THD(thd, ER_DEBUG_SYNC_TIMEOUT)); thd->abort_on_warning= save_abort_on_warning; DBUG_EXECUTE_IF("debug_sync_abort_on_timeout", DBUG_ABORT();); break; |