Skip to content

Commit

Permalink
Removed incoming_replication_hostgroups flag
Browse files Browse the repository at this point in the history
  • Loading branch information
rahim-kanji committed Feb 17, 2023
1 parent 1e0a1cf commit 3aa4055
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions lib/MySQL_HostGroups_Manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1833,12 +1833,11 @@ bool MySQL_HostGroups_Manager::commit(
proxy_debug(PROXY_DEBUG_MYSQL_CONNPOOL, 4, "DELETE FROM mysql_servers_incoming\n");
mydb->execute("DELETE FROM mysql_servers_incoming");

// replication
if (incoming_replication_hostgroups) { // this IF is extremely important, otherwise replication hostgroups may disappear
proxy_debug(PROXY_DEBUG_MYSQL_CONNPOOL, 4, "DELETE FROM mysql_replication_hostgroups\n");
mydb->execute("DELETE FROM mysql_replication_hostgroups");
generate_mysql_replication_hostgroups_table();
}
proxy_debug(PROXY_DEBUG_MYSQL_CONNPOOL, 4, "DELETE FROM mysql_replication_hostgroups\n");
mydb->execute("DELETE FROM mysql_replication_hostgroups");

generate_mysql_replication_hostgroups_table();


// group replication
if (incoming_group_replication_hostgroups) {
Expand Down

0 comments on commit 3aa4055

Please sign in to comment.