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:
cb8dd89
)
dont try sending a keepalive if the transport is down
author
Ronnie Sahlberg
<ronniesahlberg@gmail.com>
Tue, 30 Jun 2009 02:17:05 +0000
(12:17 +1000)
committer
Ronnie Sahlberg
<ronniesahlberg@gmail.com>
Tue, 30 Jun 2009 02:17:05 +0000
(12:17 +1000)
server/ctdb_call.c
patch
|
blob
|
history
diff --git
a/server/ctdb_call.c
b/server/ctdb_call.c
index 0c4c60229304036773cd394318d04b0fd6ed425b..b666a9ed1bc80d58d4467578e9bab457743c29f6 100644
(file)
--- a/
server/ctdb_call.c
+++ b/
server/ctdb_call.c
@@
-768,6
+768,11
@@
void ctdb_send_keepalive(struct ctdb_context *ctdb, uint32_t destnode)
{
struct ctdb_req_keepalive *r;
+ if (ctdb->methods == NULL) {
+ DEBUG(DEBUG_ERR,(__location__ " Failed to send keepalive. Transport is DOWN\n"));
+ return;
+ }
+
r = ctdb_transport_allocate(ctdb, ctdb, CTDB_REQ_KEEPALIVE,
sizeof(struct ctdb_req_keepalive),
struct ctdb_req_keepalive);