From 7567e013370199b6b25a580e64bf3466531e0034 Mon Sep 17 00:00:00 2001 From: Ronnie Sahlberg Date: Tue, 23 Aug 2011 16:15:34 +1000 Subject: LibCTDB : initialize ctdb->pnn to -1 when we create a new context but before we learn the pnn of the local node (This used to be ctdb commit 8d363d3ce105b78c94f8e50184b6579b25b237f6) --- ctdb/libctdb/ctdb.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ctdb/libctdb/ctdb.c b/ctdb/libctdb/ctdb.c index e407910a30..98c86f600d 100644 --- a/ctdb/libctdb/ctdb.c +++ b/ctdb/libctdb/ctdb.c @@ -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; -- cgit