mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Merge branch '10.4' into 10.5
This commit is contained in:
@ -2264,11 +2264,10 @@ bool dispatch_command(enum enum_server_command command, THD *thd,
|
||||
size_t length=
|
||||
#endif
|
||||
my_snprintf(buff, buff_len - 1,
|
||||
"Uptime: %lu Threads: %d Questions: %lu "
|
||||
"Uptime: %lu Threads: %u Questions: %lu "
|
||||
"Slow queries: %lu Opens: %lu "
|
||||
"Open tables: %u Queries per second avg: %u.%03u",
|
||||
uptime,
|
||||
(int) thread_count, (ulong) thd->query_id,
|
||||
uptime, THD_count::value(), (ulong) thd->query_id,
|
||||
current_global_status_var->long_query_count,
|
||||
current_global_status_var->opened_tables,
|
||||
tc_records(),
|
||||
@ -5726,6 +5725,11 @@ mysql_execute_command(THD *thd)
|
||||
/* Begin transaction with the same isolation level. */
|
||||
if (tx_chain)
|
||||
{
|
||||
#ifdef WITH_WSREP
|
||||
/* If there are pending changes after rollback we should clear them */
|
||||
if (wsrep_on(thd) && wsrep_has_changes(thd))
|
||||
wsrep_after_statement(thd);
|
||||
#endif
|
||||
if (trans_begin(thd))
|
||||
goto error;
|
||||
}
|
||||
|
Reference in New Issue
Block a user