diff options
author | Christian Pointner <equinox@helsinki.at> | 2010-01-10 13:56:57 (GMT) |
---|---|---|
committer | Christian Pointner <equinox@helsinki.at> | 2010-01-10 13:56:57 (GMT) |
commit | 51af8e19e9ad47539038f04012f4202f2dbb6b9a (patch) | |
tree | 0b432b9dd29d62e2f903af1e41df49d623a29ed1 /switchctl.c | |
parent | 2532c73e35f699b366ca682bc058dc86c4660b5b (diff) |
type master and standby now implicit sets gpi listener flag
Diffstat (limited to 'switchctl.c')
-rw-r--r-- | switchctl.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/switchctl.c b/switchctl.c index b003909..6d5c42c 100644 --- a/switchctl.c +++ b/switchctl.c @@ -312,10 +312,14 @@ void process_cmd_type(const char* param, int fd, client_t* client_lst) if(param) { client_t* client = client_find(client_lst, fd); if(client) { - if(!strncmp(param, "master", 6)) + if(!strncmp(param, "master", 6)) { client->type = MASTER; - else if(!strncmp(param, "standby", 7)) - client->type = STANDBY; + client->gpi_listener = 1; + } + else if(!strncmp(param, "standby", 7)) { + client->type = STANDBY; + client->gpi_listener = 1; + } else if(!strncmp(param, "heartbeat", 9)) client->type = HEARTBEAT; else { |