summaryrefslogtreecommitdiffstats
path: root/ctdb/server/ctdb_call.c
diff options
context:
space:
mode:
authorRonnie Sahlberg <ronniesahlberg@gmail.com>2009-06-30 12:16:13 +1000
committerRonnie Sahlberg <ronniesahlberg@gmail.com>2009-06-30 12:16:13 +1000
commit6450ae533ad4a5afdafdbdbddd96a3aa86cdf4a0 (patch)
tree24a490759efcde6a6ece58f99f58513995dfeb8f /ctdb/server/ctdb_call.c
parent127754e1925ab3732c847f27af6116182040ef67 (diff)
downloadsamba-6450ae533ad4a5afdafdbdbddd96a3aa86cdf4a0.tar.gz
samba-6450ae533ad4a5afdafdbdbddd96a3aa86cdf4a0.tar.xz
samba-6450ae533ad4a5afdafdbdbddd96a3aa86cdf4a0.zip
Dont even try allocating and sending a CALL packet if the transport is down
(This used to be ctdb commit cb8dd896914d4e44ad7b8bb000176a7c78f394ae)
Diffstat (limited to 'ctdb/server/ctdb_call.c')
-rw-r--r--ctdb/server/ctdb_call.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/ctdb/server/ctdb_call.c b/ctdb/server/ctdb_call.c
index e4d880d122..0c4c602293 100644
--- a/ctdb/server/ctdb_call.c
+++ b/ctdb/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,