Add CHK_SERVER capability and test in dcb_persistent_clean_count

This commit is contained in:
counterpoint
2015-06-03 15:39:06 +01:00
parent ef6b6566e6
commit fe2f8e70d1
3 changed files with 15 additions and 1 deletions

View File

@ -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"); \