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:
@ -263,6 +263,7 @@ session_link_dcb(MXS_SESSION *session, DCB *dcb)
|
|||||||
}
|
}
|
||||||
atomic_add(&session->refcount, 1);
|
atomic_add(&session->refcount, 1);
|
||||||
dcb->session = session;
|
dcb->session = session;
|
||||||
|
dcb->service = session->service;
|
||||||
/** Move this DCB under the same thread */
|
/** Move this DCB under the same thread */
|
||||||
dcb->thread.id = session->client_dcb->thread.id;
|
dcb->thread.id = session->client_dcb->thread.id;
|
||||||
return true;
|
return true;
|
||||||
|
Reference in New Issue
Block a user