diff options
author | mkaruza <mario.karuza@galeracluster.com> | 2018-08-29 16:45:28 +0200 |
---|---|---|
committer | mkaruza <mario.karuza@galeracluster.com> | 2018-09-04 10:59:08 +0200 |
commit | 58a1d274e634b89eef3e13878e0b01bcfca7b886 (patch) | |
tree | 6267ee4cdf81d27c25398aac2ff2b86b4a6e2ab9 /sql/sql_base.cc | |
parent | 186a998b5b932851d64666c92e3062c9e997e77b (diff) | |
download | mariadb-git-58a1d274e634b89eef3e13878e0b01bcfca7b886.tar.gz |
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.
Diffstat (limited to 'sql/sql_base.cc')
-rw-r--r-- | sql/sql_base.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sql/sql_base.cc b/sql/sql_base.cc index 490f21aa950..4a22d32a026 100644 --- a/sql/sql_base.cc +++ b/sql/sql_base.cc @@ -3807,6 +3807,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 } |