Add CHK_SERVER capability and test in dcb_persistent_clean_count
This commit is contained in:
@ -131,6 +131,7 @@ typedef enum skygw_chk_t {
|
||||
CHK_NUM_DCB,
|
||||
CHK_NUM_PROTOCOL,
|
||||
CHK_NUM_SESSION,
|
||||
CHK_NUM_SERVER,
|
||||
CHK_NUM_ROUTER_SES,
|
||||
CHK_NUM_MY_SESCMD,
|
||||
CHK_NUM_ROUTER_PROPERTY,
|
||||
@ -506,6 +507,12 @@ typedef enum skygw_chk_t {
|
||||
"Session under- or overflow"); \
|
||||
}
|
||||
|
||||
#define CHK_SERVER(s) { \
|
||||
ss_info_dassert(s->server_chk_top == CHK_NUM_SERVER && \
|
||||
s->server_chk_tail == CHK_NUM_SERVER, \
|
||||
"Server under- or overflow"); \
|
||||
}
|
||||
|
||||
#define CHK_GWBUF(b) { \
|
||||
ss_info_dassert(((char *)(b)->start <= (char *)(b)->end), \
|
||||
"gwbuf start has passed the endpoint"); \
|
||||
|
Reference in New Issue
Block a user