diff options
author | Jan Lindström <jan.lindstrom@mariadb.com> | 2018-04-27 14:42:47 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-27 14:42:47 +0300 |
commit | ed1d9c802dc3568487f0154df46c71f1bb31782c (patch) | |
tree | 322e7f88919c909a32ea253384a9b0114787fd97 /sql/sql_parse.cc | |
parent | e0208e51d0542f02a6e467e45e5e5cd29c38daf1 (diff) | |
parent | 58c03e8f308c3f5e3a5c45b3af39529392569ba0 (diff) | |
download | mariadb-git-ed1d9c802dc3568487f0154df46c71f1bb31782c.tar.gz |
Merge pull request #729 from codership/MDEV-15794
MDEV-15794 Fix and re-enable test galera_var_retry_autocommit
Diffstat (limited to 'sql/sql_parse.cc')
-rw-r--r-- | sql/sql_parse.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sql/sql_parse.cc b/sql/sql_parse.cc index 03b1a20fd17..5c03999c9ac 100644 --- a/sql/sql_parse.cc +++ b/sql/sql_parse.cc @@ -7187,6 +7187,15 @@ static void wsrep_mysql_parse(THD *thd, char *rawbuf, uint length, com_statement_info[thd->get_command()].m_key); MYSQL_SET_STATEMENT_TEXT(thd->m_statement_psi, thd->query(), thd->query_length()); + + DBUG_EXECUTE_IF("sync.wsrep_retry_autocommit", + { + const char act[]= + "now " + "SIGNAL wsrep_retry_autocommit_reached " + "WAIT_FOR wsrep_retry_autocommit_continue"; + DBUG_ASSERT(!debug_sync_set_action(thd, STRING_WITH_LEN(act))); + }); } mysql_parse(thd, rawbuf, length, parser_state); |