MXS-2196: Pass the SERVICE pointer when allocating a DCB
The value would otherwise be assigned outside of it and in some cases not at all. Now all DCBs (apart from internal ones) have a valid SERVICE pointer. The SERV_LISTENER pointer should not be in the DCBs but in the session. This way the listener is an attribute of a session instead of a connection. If this is implemented, the authenticator data can be more easily shared.
This commit is contained in:
@ -261,7 +261,7 @@ void dcb_global_init();
|
||||
|
||||
int dcb_write(DCB*, GWBUF*);
|
||||
DCB* dcb_accept(DCB* listener);
|
||||
DCB* dcb_alloc(dcb_role_t, SERV_LISTENER*);
|
||||
DCB* dcb_alloc(dcb_role_t, SERV_LISTENER*, SERVICE* service);
|
||||
DCB* dcb_connect(struct server*, struct session*, const char*);
|
||||
int dcb_read(DCB*, GWBUF**, int);
|
||||
int dcb_drain_writeq(DCB*);
|
||||
|
||||
Reference in New Issue
Block a user