mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
MDEV-15845 Test failure on galera.galera_concurrent_ctas
While executing CTAS galera applier thread can cause CTAS to abort and rollback. Rollback can take time causing applier thread to shutdown node after serial unsuccessful retries to apply transaction. Don't set lock_wait_timeout to zero to wait for lock.
This commit is contained in:
@ -4379,6 +4379,10 @@ lock_table_names(THD *thd, const DDL_options_st &options,
|
||||
mdl_requests.push_front(&global_request);
|
||||
|
||||
if (create_table)
|
||||
#ifdef WITH_WSREP
|
||||
if (thd->lex->sql_command != SQLCOM_CREATE_TABLE &&
|
||||
thd->wsrep_exec_mode != REPL_RECV)
|
||||
#endif
|
||||
lock_wait_timeout= 0; // Don't wait for timeout
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user