Fix binlogrouter use of DCBs

The dcb_connect function requires that the client DCB has a remote
address.
This commit is contained in:
Markus Mäkelä 2018-12-28 10:13:24 +02:00
parent 4d0a40ef9f
commit 3b150ad4b2
No known key found for this signature in database
GPG Key ID: 72D48FCE664F7B19

View File

@ -193,6 +193,7 @@ static void blr_start_master(void* data)
router->session = new mxs::Session(listener);
Listener::destroy(listener);
router->client = dcb_alloc(DCB::Role::INTERNAL, router->session);
router->client->remote = MXS_STRDUP("127.0.0.1");
/* Fake the client is reading */
router->client->state = DCB_STATE_POLLING; /* Fake the client is reading */