mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Merge 10.4 into 10.5
This commit is contained in:
@ -2342,6 +2342,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:
|
||||
@ -4487,7 +4491,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);
|
||||
|
Reference in New Issue
Block a user