summaryrefslogtreecommitdiff
path: root/sql/sql_prepare.cc
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2022-03-30 08:52:05 +0300
committerMarko Mäkelä <marko.makela@mariadb.com>2022-03-30 08:52:05 +0300
commita4d753758fd5305853ba339a0cd57d1675d5aa8c (patch)
tree33afd8af9e7cc164744bb9a2acc8ad5cf819a0e9 /sql/sql_prepare.cc
parent2885fb0ee496285b49efea7d84c6cd0a8e819319 (diff)
parent0a573e7e632f604ee58f944161889bf2abe8bc2c (diff)
downloadmariadb-git-a4d753758fd5305853ba339a0cd57d1675d5aa8c.tar.gz
Merge 10.6 into 10.7
Diffstat (limited to 'sql/sql_prepare.cc')
-rw-r--r--sql/sql_prepare.cc12
1 files changed, 11 insertions, 1 deletions
diff --git a/sql/sql_prepare.cc b/sql/sql_prepare.cc
index e025147c71e..83c064c63c6 100644
--- a/sql/sql_prepare.cc
+++ b/sql/sql_prepare.cc
@@ -2463,6 +2463,10 @@ static bool check_prepared_statement(Prepared_statement *stmt)
goto error;
}
+#ifdef WITH_WSREP
+ if (wsrep_sync_wait(thd, sql_command))
+ goto error;
+#endif
switch (sql_command) {
case SQLCOM_REPLACE:
case SQLCOM_INSERT:
@@ -4612,7 +4616,13 @@ Prepared_statement::execute_loop(String *expanded_query,
if (set_parameters(expanded_query, packet, packet_end))
return TRUE;
-
+#ifdef WITH_WSREP
+ if (thd->wsrep_delayed_BF_abort)
+ {
+ WSREP_DEBUG("delayed BF abort, quitting execute_loop, stmt: %d", id);
+ return TRUE;
+ }
+#endif /* WITH_WSREP */
reexecute:
// Make sure that reprepare() did not create any new Items.
DBUG_ASSERT(thd->free_list == NULL);