mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Using more of Sql_mode_save. Adding a similar class for THD::abort_on_warnings.
This commit is contained in:
@ -1451,12 +1451,10 @@ static void debug_sync_execute(THD *thd, st_debug_sync_action *action)
|
||||
if (unlikely(error == ETIMEDOUT || error == ETIME))
|
||||
{
|
||||
// We should not make the statement fail, even if in strict mode.
|
||||
const bool save_abort_on_warning= thd->abort_on_warning;
|
||||
thd->abort_on_warning= false;
|
||||
Abort_on_warning_instant_set aws(thd, false);
|
||||
push_warning(thd, Sql_condition::WARN_LEVEL_WARN,
|
||||
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_ASSERT(0););
|
||||
break;
|
||||
}
|
||||
|
Reference in New Issue
Block a user