Addition of send_slave_heartbeat option

Addition of send_slave_heartbeat option
This commit is contained in:
MassimilianoPinto
2015-09-30 14:39:26 +02:00
parent 4aa161d78e
commit f9ee9ca028
4 changed files with 35 additions and 11 deletions

View File

@ -46,6 +46,7 @@
* If set those values are sent to slaves instead of
* saved master responses
* 23/08/2015 Massimiliano Pinto Added strerror_r
* 30/09/2015 Massimiliano Pinto Addition of send_slave_heartbeat option
*
* @endverbatim
*/
@ -287,6 +288,7 @@ char task_name[BLRM_TASK_NAME_LEN+1] = "";
inst->set_master_hostname = NULL;
inst->set_master_uuid = NULL;
inst->set_master_server_id = NULL;
inst->send_slave_heartbeat = 0;
inst->serverid = 0;
@ -468,6 +470,10 @@ char task_name[BLRM_TASK_NAME_LEN+1] = "";
inst->heartbeat = h_val;
}
}
else if (strcmp(options[i], "send_slave_heartbeat") == 0)
{
inst->send_slave_heartbeat = atoi(value);
}
else if (strcmp(options[i], "binlogdir") == 0)
{
inst->binlogdir = strdup(value);