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:
parent
e2194a02ae
commit
a62333a29a
@ -275,6 +275,7 @@ void session_link_backend_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->poll.thread.id = session->client_dcb->poll.thread.id;
|
dcb->poll.thread.id = session->client_dcb->poll.thread.id;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user