Put structure check fields behind SS_DEBUG macros. Thus, they are only included in debug builds.

This commit is contained in:
vraatikka
2013-09-09 10:05:46 +03:00
parent 27338c2537
commit e1d7a5640d
6 changed files with 18 additions and 3 deletions

View File

@ -100,7 +100,9 @@ typedef enum {
* MySQL Protocol specific state data
*/
typedef struct {
#if defined(SS_DEBUG)
skygw_chk_t protocol_chk_top;
#endif
int fd; /* The socket descriptor */
struct dcb *owner_dcb; /** The DCB of the socket
* we are running on */
@ -113,7 +115,9 @@ typedef struct {
* created or received */
unsigned long tid; /** MySQL Thread ID, in
* handshake */
#if defined(SS_DEBUG)
skygw_chk_t protocol_chk_tail;
#endif
} MySQLProtocol;
/*