diff options
author | Oleksandr Byelkin <sanja@mariadb.com> | 2023-05-02 10:09:27 +0200 |
---|---|---|
committer | Oleksandr Byelkin <sanja@mariadb.com> | 2023-05-02 10:09:27 +0200 |
commit | edd0b03e60f4cc666fbdf16e7b01b97188f2f887 (patch) | |
tree | 1124df96972d5aea4a232d83680a8eaea50ed9df /sql/sql_sequence.cc | |
parent | ddcc9d2281de9fa68525a6808e9181bbd6bf98e0 (diff) | |
parent | 55a53949beac6e212b1232d3628d96b9b8121a49 (diff) | |
download | mariadb-git-edd0b03e60f4cc666fbdf16e7b01b97188f2f887.tar.gz |
Merge branch '10.3' into 10.4
Diffstat (limited to 'sql/sql_sequence.cc')
-rw-r--r-- | sql/sql_sequence.cc | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/sql/sql_sequence.cc b/sql/sql_sequence.cc index e2c1c504245..ce95d7baeeb 100644 --- a/sql/sql_sequence.cc +++ b/sql/sql_sequence.cc @@ -1012,10 +1012,19 @@ bool Sql_cmd_alter_sequence::execute(THD *thd) else table->file->print_error(error, MYF(0)); table->s->sequence->write_unlock(table); - if (trans_commit_stmt(thd)) - error= 1; - if (trans_commit_implicit(thd)) - error= 1; + { + wait_for_commit* suspended_wfc= thd->suspend_subsequent_commits(); + if (trans_commit_stmt(thd)) + error= 1; + if (trans_commit_implicit(thd)) + error= 1; + thd->resume_subsequent_commits(suspended_wfc); + DBUG_EXECUTE_IF("hold_worker_on_schedule", + { + /* delay binlogging of a parent trx in rpl_parallel_seq */ + my_sleep(100000); + }); + } if (likely(!error)) error= write_bin_log(thd, 1, thd->query(), thd->query_length()); if (likely(!error)) |