Do client callback on owning worker
The callback should've been done on the worker that owns the DCB instead of the main worker.
This commit is contained in:
@ -244,7 +244,7 @@ bool file_in_dir(const char* dir, const char* file)
|
|||||||
*/
|
*/
|
||||||
void AvroSession::queue_client_callback()
|
void AvroSession::queue_client_callback()
|
||||||
{
|
{
|
||||||
auto worker = mxs::RoutingWorker::get(mxs::RoutingWorker::MAIN);
|
auto worker = static_cast<mxs::RoutingWorker*>(dcb->poll.owner);
|
||||||
worker->execute([this]() {
|
worker->execute([this]() {
|
||||||
client_callback();
|
client_callback();
|
||||||
}, mxs::RoutingWorker::EXECUTE_QUEUED);
|
}, mxs::RoutingWorker::EXECUTE_QUEUED);
|
||||||
|
Reference in New Issue
Block a user