Initial implementation of the support for multiple slaves in read/write split router session. Omits configuration changes.

This commit is contained in:
VilhoRaatikka
2014-04-23 14:55:04 +03:00
parent a6ea56a153
commit 04313caf82
4 changed files with 543 additions and 409 deletions

View File

@ -119,7 +119,9 @@ typedef enum skygw_chk_t {
CHK_NUM_SESSION,
CHK_NUM_ROUTER_SES,
CHK_NUM_MY_SESCMD,
CHK_NUM_ROUTER_PROPERTY
CHK_NUM_ROUTER_PROPERTY,
CHK_NUM_SESCMD_CUR,
CHK_NUM_BACKEND
} skygw_chk_t;
# define STRBOOL(b) ((b) ? "true" : "false")
@ -446,6 +448,17 @@ typedef enum skygw_chk_t {
"Session command has invalid check fields"); \
}
#define CHK_SESCMD_CUR(c) { \
ss_info_dassert((c)->scmd_cur_chk_top == CHK_NUM_SESCMD_CUR && \
(c)->scmd_cur_chk_tail == CHK_NUM_SESCMD_CUR, \
"Session command cursor has invalid check fields"); \
}
#define CHK_BACKEND(b) { \
ss_info_dassert((b)->be_chk_top == CHK_NUM_BACKEND && \
(b)->be_chk_tail == CHK_NUM_BACKEND, \
"BACKEND has invalid check fields"); \
}
#if defined(SS_DEBUG)
bool conn_open[10240];