Only add tasks once in binlogrouter

Adding the same task twice isn't allowed. The API of the housekeeper tasks
might have to be changed in a way that makes it possible for the caller to
know whether a task has been added.
This commit is contained in:
Markus Mäkelä
2019-03-26 09:13:44 +02:00
parent 0915487329
commit f8bc6b18fc
3 changed files with 16 additions and 10 deletions

View File

@ -799,6 +799,7 @@ struct ROUTER_INSTANCE : public MXS_ROUTER
unsigned int long_burst; /*< Long burst for slave catchup */
unsigned long burst_size; /*< Maximum size of burst to send */
unsigned long heartbeat; /*< Configured heartbeat value */
bool heartbeat_task_active;
ROUTER_STATS stats; /*< Statistics for this router */
int active_logs;
int reconnect_pending;