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
parent f9b22387f9
commit 196821c6fc

View File

@ -263,6 +263,7 @@ session_link_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->thread.id = session->client_dcb->thread.id;
return true;