use the correct tunable failcount not timeout
authorRonnie Sahlberg <ronniesahlberg@gmail.com>
Wed, 17 Sep 2008 04:24:12 +0000 (14:24 +1000)
committerRonnie Sahlberg <ronniesahlberg@gmail.com>
Wed, 17 Sep 2008 04:24:12 +0000 (14:24 +1000)
server/ctdb_recover.c

index ee03eec0242fc752c51bc4a1a856ee948bd029cf..dc6533cb3f3db019f88f67762233c0ff46118ae7 100644 (file)
@@ -978,7 +978,7 @@ static void ctdb_recd_ping_timeout(struct event_context *ev, struct timed_event
 
        DEBUG(DEBUG_ERR, (__location__ " Recovery daemon ping timeout. Count : %u\n", *count));
 
-       if (*count < ctdb->tunable.recd_ping_timeout) {
+       if (*count < ctdb->tunable.recd_ping_failcount) {
                (*count)++;
                event_add_timed(ctdb->ev, ctdb->recd_ping_count, 
                        timeval_current_ofs(ctdb->tunable.recd_ping_timeout, 0),