git.samba.org
/
sahlberg
/
ctdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cd10807
)
LibCTDB : initialize ctdb->pnn to -1 when we create a new context
author
Ronnie Sahlberg
<ronniesahlberg@gmail.com>
Tue, 23 Aug 2011 06:15:34 +0000
(16:15 +1000)
committer
Ronnie 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
patch
|
blob
|
history
diff --git
a/libctdb/ctdb.c
b/libctdb/ctdb.c
index d51f4a11d3e65ee40695fe2e6d780fc62cb69d9e..72841dbd7462f8b67ea770ef64f85d6e3478ba8e 100644
(file)
--- a/
libctdb/ctdb.c
+++ b/
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;