Support for MySQL Cluster

Support for MySQL Cluster with ndbcluster monitor and readconnroute
with router_option=ndb
This commit is contained in:
MassimilianoPinto
2014-07-30 09:41:03 +02:00
parent 40546fc689
commit 744892e47c
5 changed files with 12 additions and 4 deletions

View File

@ -145,7 +145,7 @@ typedef struct server {
#define SERVER_IN_MAINT(server) ((server)->status & SERVER_MAINT)
/** server is not master, slave or joined */
#define SERVER_NOT_IN_CLUSTER(s) (((s)->status & (SERVER_MASTER|SERVER_SLAVE|SERVER_JOINED)) == 0)
#define SERVER_NOT_IN_CLUSTER(s) (((s)->status & (SERVER_MASTER|SERVER_SLAVE|SERVER_JOINED|SERVER_NDB)) == 0)
#define SERVER_IS_IN_CLUSTER(s) (((s)->status & (SERVER_MASTER|SERVER_SLAVE|SERVER_JOINED|SERVER_NDB)) != 0)