Resolve transition from catchup to follow mode.

This commit is contained in:
Mark Riddoch
2014-10-14 11:43:08 +01:00
parent 52e8b33422
commit fe0e7c74d0
5 changed files with 325 additions and 164 deletions

View File

@ -382,6 +382,14 @@ ROUTER_SLAVE *slave;
slave->dcb = session->client;
slave->router = inst;
slave->file = NULL;
strcpy(slave->binlogfile, "unassigned");
{
char buf[1000];
sprintf(buf, "Slave History %x", slave);
slave->clog = memlog_create(buf, ML_INT, 2000);
if (slave->clog)
memlog_set(slave->clog, MLNOAUTOFLUSH);
}
/**
* Add this session to the list of active sessions.