Change session_link_dcb to void

The function attempted to detect use of freed memory, which is a
futile excersize.
This commit is contained in:
Johan Wikman
2017-09-07 15:01:17 +03:00
parent 44db97215f
commit 80815e0f54
3 changed files with 14 additions and 38 deletions

View File

@ -42,7 +42,14 @@ typedef enum
int session_isvalid(MXS_SESSION *);
const char *session_state(mxs_session_state_t);
bool session_link_dcb(MXS_SESSION *, struct dcb *);
/**
* Link a session to a DCB.
*
* @param session The session to link with the dcb
* @param dcb The DCB to be linked
*/
void session_link_dcb(MXS_SESSION *session, struct dcb *dcb);
RESULTSET *sessionGetList(SESSIONLISTFILTER);