mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
MDEV-13549 Fix and re-enable MTR test galera.MW-284
The following changes are committed: * `RESET MASTER` at the end of the test. This was necessary to allow the test to run on repeated runs. * `--source include/galera_wait_ready.inc` after setting `gmcast.isolate=0` to get back to a primary component. * Fix for assertion in `Protocol::end_statement()`. The assertion is due to the fact that function `do_command()` calls `thd->protocol->end_statement()`, without setting an error, when it is detected that galera is not ready yet. Following line somehow disappeared in a past merge: ``` my_message(ER_UNKNOWN_COM_ERROR, "WSREP has not yet prepared node for application use", MYF(0)); ```
This commit is contained in:
@ -1094,9 +1094,11 @@ bool do_command(THD *thd)
|
||||
Bail out if DB snapshot has not been installed.
|
||||
*/
|
||||
if (!thd->wsrep_applier &&
|
||||
(!wsrep_ready || wsrep_reject_queries != WSREP_REJECT_NONE) &&
|
||||
(server_command_flags[command] & CF_SKIP_WSREP_CHECK) == 0)
|
||||
(!wsrep_ready || wsrep_reject_queries != WSREP_REJECT_NONE) &&
|
||||
(server_command_flags[command] & CF_SKIP_WSREP_CHECK) == 0)
|
||||
{
|
||||
my_message(ER_UNKNOWN_COM_ERROR,
|
||||
"WSREP has not yet prepared node for application use", MYF(0));
|
||||
thd->protocol->end_statement();
|
||||
|
||||
/* Performance Schema Interface instrumentation end. */
|
||||
|
Reference in New Issue
Block a user