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:
bbebc15
)
Dont even try allocating and sending a CALL packet if the transport is down
author
Ronnie Sahlberg
<ronniesahlberg@gmail.com>
Tue, 30 Jun 2009 02:16:13 +0000
(12:16 +1000)
committer
Ronnie Sahlberg
<ronniesahlberg@gmail.com>
Mon, 27 Jul 2009 03:08:26 +0000
(13:08 +1000)
server/ctdb_call.c
patch
|
blob
|
history
diff --git
a/server/ctdb_call.c
b/server/ctdb_call.c
index e4d880d12209751e93cae64aae6daf72effda7fe..0c4c60229304036773cd394318d04b0fd6ed425b 100644
(file)
--- a/
server/ctdb_call.c
+++ b/
server/ctdb_call.c
@@
-382,6
+382,12
@@
void ctdb_request_call(struct ctdb_context *ctdb, struct ctdb_req_header *hdr)
struct ctdb_call *call;
struct ctdb_db_context *ctdb_db;
+ if (ctdb->methods == NULL) {
+ DEBUG(DEBUG_ERR,(__location__ " Failed ctdb_request_call. Transport is DOWN\n"));
+ return;
+ }
+
+
ctdb_db = find_ctdb_db(ctdb, c->db_id);
if (!ctdb_db) {
ctdb_send_error(ctdb, hdr, -1,