MXS-2196: Make DCB a C++ struct
Allocating DCB with new allows the use of C++ objects in the DCB struct. Also the explicit poll field can be replaced by inheriting from MXB_POLL_DATA.
This commit is contained in:
@ -215,7 +215,7 @@ static void blr_start_master(void* data)
|
||||
* 'client' is the fake DCB that emulates a client session:
|
||||
* we need to set the poll.thread.id for the "dummy client"
|
||||
*/
|
||||
client->session->client_dcb->poll.owner = mxs_rworker_get_current();
|
||||
client->session->client_dcb->owner = mxs_rworker_get_current();
|
||||
|
||||
/* Connect to configured master server */
|
||||
if ((router->master = dcb_connect(router->service->dbref->server,
|
||||
|
Reference in New Issue
Block a user