1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-17 12:02:09 +03:00
This commit is contained in:
Brave Galera Crew
2019-01-23 15:30:00 +04:00
committed by Sergey Vojtovich
parent 382115b992
commit 36a2a185fe
791 changed files with 28035 additions and 8865 deletions

View File

@ -3845,6 +3845,17 @@ int reset_master(THD* thd, rpl_gtid *init_state, uint32 init_state_len,
return 1;
}
#ifdef WITH_WSREP
if (WSREP_ON)
{
/* RESET MASTER will initialize GTID sequence, and that would happen locally
in this node, so better reject it
*/
my_message(ER_NOT_ALLOWED_COMMAND,
"RESET MASTER not allowed when node is in cluster", MYF(0));
return 1;
}
#endif /* WITH_WSREP */
bool ret= 0;
/* Temporarily disable master semisync before reseting master. */
repl_semisync_master.before_reset_master();