Move DCB owner selection into Listener

The code that selects which worker to assign the DCB to is now completely
in the Listener class. This removes the need to change the ownership of a
DCB after it has been allocated.
This commit is contained in:
Markus Mäkelä
2019-04-26 10:54:57 +03:00
parent 510cae2fe0
commit ea14331d18
6 changed files with 20 additions and 60 deletions

View File

@ -226,11 +226,7 @@ static void blr_start_master(void* data)
return;
}
/**
* 'client' is the fake DCB that emulates a client session:
* we need to set the poll.thread.id for the "dummy client"
*/
router->client->owner = mxs_rworker_get_current();
mxb_assert(router->client->owner == mxs_rworker_get_current());
/* Connect to configured master server */
if ((router->master = dcb_connect(router->service->dbref->server,