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

@ -76,6 +76,9 @@ typedef struct {
* between the gateway and the server.
*/
typedef struct server {
#if defined(SS_DEBUG)
skygw_chk_t server_chk_top;
#endif
char *unique_name; /**< Unique name for the server */
char *name; /**< Server name/IP address*/
unsigned short port; /**< Port to listen on */
@ -99,6 +102,9 @@ typedef struct server {
SPINLOCK persistlock; /**< Lock for adjusting the persistent connections list */
long persistpoolmax; /**< Maximum size of persistent connections pool */
long persistmaxtime; /**< Maximum number of seconds connection can live */
#if defined(SS_DEBUG)
skygw_chk_t server_chk_tail;
#endif
} SERVER;
/**