Remove unnecessary readconnroute code

The check for a closed session should never be needed as the core
correctly orders the calls to the module functions. The version numbering
was also not used.

Fixed the incrementation of the query counter so that it uses relaxed
atomic operations.
This commit is contained in:
Markus Mäkelä
2018-09-26 10:58:07 +03:00
parent ab4f870927
commit c0bc611f03
2 changed files with 11 additions and 29 deletions

View File

@ -37,8 +37,6 @@
*/
struct ROUTER_CLIENT_SES : MXS_ROUTER_SESSION
{
int rses_versno;/*< even = no active update, else odd */
bool rses_closed;/*< true when closeSession is called */
SERVER_REF* backend; /*< Backend used by the client session */
DCB* backend_dcb;/*< DCB Connection to the backend */
DCB* client_dcb; /**< Client DCB */