Integrate Replicator into avrorouter

Took the Replicator into use in avrorouter as an alternative to the
binlogrouter based setup. This also allows the avrorouter to automatically
handle master failovers and to start replication from GTID coordinates.
This commit is contained in:
Markus Mäkelä
2019-04-07 11:33:24 +03:00
parent 7723e7c933
commit 733dc491d9
6 changed files with 55 additions and 38 deletions

View File

@ -384,7 +384,10 @@ bool notify_cb(DCB* dcb, void* data)
void notify_all_clients(SERVICE* service)
{
dcb_foreach(notify_cb, service);
auto worker = mxs::RoutingWorker::get(mxs::RoutingWorker::MAIN);
worker->execute([service]() {
dcb_foreach(notify_cb, service);
}, mxs::RoutingWorker::EXECUTE_AUTO);
}
void do_checkpoint(Avro* router)