mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
MDEV-27161: Add option for SQL thread to limit maximum execution time per query replicated
New Feature: ============ This patch adds a new system variable, @@slave_max_statement_time, which limits the execution time of s slave’s events that implements an equivalent to @@max_statement_time for slave applier. Reviewed By: ============ Andrei Elkin <andrei.elkin@mariadb.com>
This commit is contained in:
committed by
Andrei
parent
7864d955f3
commit
360d99429c
@@ -2095,7 +2095,8 @@ int THD::killed_errno()
|
||||
DBUG_RETURN(ER_QUERY_INTERRUPTED);
|
||||
case KILL_TIMEOUT:
|
||||
case KILL_TIMEOUT_HARD:
|
||||
DBUG_RETURN(ER_STATEMENT_TIMEOUT);
|
||||
DBUG_RETURN(slave_thread ?
|
||||
ER_SLAVE_STATEMENT_TIMEOUT : ER_STATEMENT_TIMEOUT);
|
||||
case KILL_SERVER:
|
||||
case KILL_SERVER_HARD:
|
||||
DBUG_RETURN(ER_SERVER_SHUTDOWN);
|
||||
|
Reference in New Issue
Block a user