Merge branch '2.0' into develop
This commit is contained in:
@ -31,15 +31,15 @@ MXS_BEGIN_DECLS
|
||||
*/
|
||||
#include <maxscale/protocol/mysql.h>
|
||||
|
||||
#define RW_CHK_DCB(bref, dcb) \
|
||||
#define RW_CHK_DCB(b, d) \
|
||||
do{ \
|
||||
if(dcb->state == DCB_STATE_DISCONNECTED){ \
|
||||
if(d->state == DCB_STATE_DISCONNECTED){ \
|
||||
MXS_NOTICE("DCB was closed on line %d and another attempt to close it is made on line %d." , \
|
||||
(bref) ? (bref)->closed_at : -1, __LINE__); \
|
||||
(b) ? (b)->closed_at : -1, __LINE__); \
|
||||
} \
|
||||
}while (false)
|
||||
|
||||
#define RW_CLOSE_BREF(b) do{ if (bref){ bref->closed_at = __LINE__; } } while (false)
|
||||
#define RW_CLOSE_BREF(b) do{ if (b){ (b)->closed_at = __LINE__; } } while (false)
|
||||
|
||||
/*
|
||||
* The following are implemented in rwsplit_mysql.c
|
||||
|
Reference in New Issue
Block a user