1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-31 22:22:30 +03:00

MDEV-9696: CREATE SERVER statement does not replicate in Galera Cluster

Enable replication of CREATE/ALTER/DROP SERVER statements
in Galera cluster.
This commit is contained in:
Nirbhay Choubey
2016-03-16 16:44:43 -04:00
parent 000f76d886
commit d31d6d31bb
3 changed files with 54 additions and 0 deletions

View File

@@ -5649,6 +5649,8 @@ create_sp_error:
if (check_global_access(thd, SUPER_ACL))
break;
WSREP_TO_ISOLATION_BEGIN(WSREP_MYSQL_DB, NULL, NULL)
res= create_server(thd, &lex->server_options);
break;
}
@@ -5660,6 +5662,8 @@ create_sp_error:
if (check_global_access(thd, SUPER_ACL))
break;
WSREP_TO_ISOLATION_BEGIN(WSREP_MYSQL_DB, NULL, NULL)
if ((error= alter_server(thd, &lex->server_options)))
{
DBUG_PRINT("info", ("problem altering server <%s>",
@@ -5678,6 +5682,8 @@ create_sp_error:
if (check_global_access(thd, SUPER_ACL))
break;
WSREP_TO_ISOLATION_BEGIN(WSREP_MYSQL_DB, NULL, NULL)
if ((err_code= drop_server(thd, &lex->server_options)))
{
if (! lex->if_exists() && err_code == ER_FOREIGN_SERVER_DOESNT_EXIST)