Cleanup slave connection removal during promotion/demotion

The removing and slave status updating is now separated to a function.
As the MariaDBServer object now contains the updated slave connections,
keeping track of removed connections is no longer required.
This commit is contained in:
Esa Korhonen
2018-10-09 12:20:57 +03:00
parent c10fab977d
commit 2f1512a22d
3 changed files with 114 additions and 129 deletions

View File

@ -170,8 +170,6 @@ public:
SLAVE_IO_NO,
};
bool exists = true; /* Has this connection been removed from the
* server but the monitor hasn't updated yet? */
bool seen_connected = false; /* Has this slave connection been seen connected,
* meaning that the master server id is correct?
**/