diff options
author | Ronnie Sahlberg <ronniesahlberg@gmail.com> | 2009-06-30 12:17:05 +1000 |
---|---|---|
committer | Ronnie Sahlberg <ronniesahlberg@gmail.com> | 2009-06-30 12:17:05 +1000 |
commit | e6e1ff32a5c8527b538830bc7b769666915de307 (patch) | |
tree | 238ec2597f520cd45a1ee774b19e6a8e11239af3 /ctdb/server/ctdb_call.c | |
parent | 6450ae533ad4a5afdafdbdbddd96a3aa86cdf4a0 (diff) | |
download | samba-e6e1ff32a5c8527b538830bc7b769666915de307.tar.gz |
dont try sending a keepalive if the transport is down
(This used to be ctdb commit 5cdc04669db8c2ddbbff5af82307a16e8d807b83)
Diffstat (limited to 'ctdb/server/ctdb_call.c')
-rw-r--r-- | ctdb/server/ctdb_call.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ctdb/server/ctdb_call.c b/ctdb/server/ctdb_call.c index 0c4c6022930..b666a9ed1bc 100644 --- a/ctdb/server/ctdb_call.c +++ b/ctdb/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); |