LibCTDB : initialize ctdb->pnn to -1 when we create a new context
authorRonnie Sahlberg <ronniesahlberg@gmail.com>
Tue, 23 Aug 2011 06:15:34 +0000 (16:15 +1000)
committerRonnie Sahlberg <ronniesahlberg@gmail.com>
Tue, 23 Aug 2011 06:16:48 +0000 (16:16 +1000)
but before we learn the pnn of the local node

libctdb/ctdb.c

index d51f4a11d3e65ee40695fe2e6d780fc62cb69d9e..72841dbd7462f8b67ea770ef64f85d6e3478ba8e 100644 (file)
@@ -151,6 +151,7 @@ struct ctdb_connection *ctdb_connect(const char *addr,
                log_fn(log_priv, LOG_ERR, "ctdb_connect: no memory", ap);
                goto fail;
        }
+       ctdb->pnn = -1;
        ctdb->outq = NULL;
        ctdb->doneq = NULL;
        ctdb->in = NULL;