mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
MDEV#6171: Fix error message for split-brain
Using my_message() (instead of my_error()) to send error message to the client.
This commit is contained in:
@ -860,8 +860,9 @@ bool do_command(THD *thd)
|
|||||||
command != COM_TIME &&
|
command != COM_TIME &&
|
||||||
command != COM_END
|
command != COM_END
|
||||||
) {
|
) {
|
||||||
my_error(ER_UNKNOWN_COM_ERROR, MYF(0),
|
my_message(ER_UNKNOWN_COM_ERROR,
|
||||||
"WSREP has not yet prepared node for application use");
|
"WSREP has not yet prepared node for application use",
|
||||||
|
MYF(0));
|
||||||
thd->protocol->end_statement();
|
thd->protocol->end_statement();
|
||||||
return_value= FALSE;
|
return_value= FALSE;
|
||||||
goto out;
|
goto out;
|
||||||
@ -2407,8 +2408,9 @@ mysql_execute_command(THD *thd)
|
|||||||
strncmp(thd->query(), mysqldump_magic_str, mysqldump_magic_str_len))
|
strncmp(thd->query(), mysqldump_magic_str, mysqldump_magic_str_len))
|
||||||
{
|
{
|
||||||
#endif /* DIRTY_HACK */
|
#endif /* DIRTY_HACK */
|
||||||
my_error(ER_UNKNOWN_COM_ERROR, MYF(0),
|
my_message(ER_UNKNOWN_COM_ERROR,
|
||||||
"WSREP has not yet prepared node for application use");
|
"WSREP has not yet prepared node for application use",
|
||||||
|
MYF(0));
|
||||||
goto error;
|
goto error;
|
||||||
#if DIRTY_HACK
|
#if DIRTY_HACK
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user