1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

dont even try to allocate a packet if the transport is down since it will fail

(This used to be ctdb commit a73f316cb9cec877dc0bc3f7baa21be1b1454273)
This commit is contained in:
Ronnie Sahlberg 2009-06-30 11:55:42 +10:00
parent 243bb51f02
commit 22fb69d337

View File

@ -663,6 +663,11 @@ struct ctdb_call_state *ctdb_daemon_call_send_remote(struct ctdb_db_context *ctd
struct ctdb_call_state *state;
struct ctdb_context *ctdb = ctdb_db->ctdb;
if (ctdb->methods == NULL) {
DEBUG(DEBUG_ERR,(__location__ " Failed send packet. Transport is down\n"));
return NULL;
}
state = talloc_zero(ctdb_db, struct ctdb_call_state);
CTDB_NO_MEMORY_NULL(ctdb, state);
state->call = talloc(state, struct ctdb_call);