Skip to content

Commit

Permalink
Whitespace cosmetics
Browse files Browse the repository at this point in the history
  • Loading branch information
k0ffee committed Mar 21, 2018
1 parent f825f01 commit 173ca34
Showing 1 changed file with 12 additions and 14 deletions.
26 changes: 12 additions & 14 deletions config.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,20 @@
#define MYSQL_USER "haproxy"
#define MYSQL_PASSWORD ""

#ifdef __APPLE__
#define MSG_NOSIGNAL 0x0 /* send(2) */
#endif

#ifdef __MYSQL__
#define GOOD_IO_RUNNING "Yes" /* I/O thread */
#define GOOD_SQL_RUNNING "Yes" /* SQL thread */
#define GOOD_SECONDS_BEHIND 4 /* maximum acceptable lag behind master */

#define QUERY "show slave status"
#define GOOD_IO_RUNNING "Yes" /* I/O thread */
#define GOOD_SQL_RUNNING "Yes" /* SQL thread */
#define GOOD_SECONDS_BEHIND 4 /* maximum acceptable lag behind master */
#define QUERY "show slave status"

#elif __GALERA__
#define GOOD_GALERA_STATUS "4" /* wsrep_local_state */
#define READ_ONLY_STATUS "OFF"
#define GOOD_GALERA_STATUS "4" /* wsrep_local_state */
#define READ_ONLY_STATUS "OFF"
#define QUERY_WSREP_STATE "show global status where " \
"variable_name='wsrep_local_state'"
#define QUERY_READ_ONLY "show global variables like 'read_only'"
#endif

#define QUERY_WSREP_STATE "show global status where " \
"variable_name='wsrep_local_state'"
#define QUERY_READ_ONLY "show global variables like 'read_only'"
#ifdef __APPLE__
#define MSG_NOSIGNAL 0x0 /* send(2) */
#endif

0 comments on commit 173ca34

Please sign in to comment.