summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRonnie Sahlberg <ronniesahlberg@gmail.com>2011-08-23 16:15:34 +1000
committerRonnie Sahlberg <ronniesahlberg@gmail.com>2011-08-23 16:15:34 +1000
commit7567e013370199b6b25a580e64bf3466531e0034 (patch)
tree0935a4aa2a68c343ec47cfe366ba0217fe51d13a
parent6f7aacb87ba4679ce588787cf77ac53f0fe119dd (diff)
downloadsamba-7567e013370199b6b25a580e64bf3466531e0034.tar.gz
samba-7567e013370199b6b25a580e64bf3466531e0034.tar.xz
samba-7567e013370199b6b25a580e64bf3466531e0034.zip
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)
-rw-r--r--ctdb/libctdb/ctdb.c1
1 files changed, 1 insertions, 0 deletions
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;