Assign the service pointer for backend DCBs

The backend DCBs didn't have a valid service pointer whereas the client
DCBs had one. The necessity of the pointer can be questioned as a similar
pointer is located in the session.
This commit is contained in:
Markus Mäkelä 2017-12-13 16:15:49 +02:00 committed by Johan Wikman
parent e2194a02ae
commit a62333a29a

View File

@ -275,6 +275,7 @@ void session_link_backend_dcb(MXS_SESSION *session, DCB *dcb)
atomic_add(&session->refcount, 1);
dcb->session = session;
dcb->service = session->service;
/** Move this DCB under the same thread */
dcb->poll.thread.id = session->client_dcb->poll.thread.id;
}