mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
Dont try to allocate and send packets if the transport is down
(This used to be ctdb commit 945f04f06a425fd3940a2e4b832c63223a3f26b3)
This commit is contained in:
parent
22fb69d337
commit
9e5064dcea
@ -607,6 +607,11 @@ int ctdb_daemon_send_control(struct ctdb_context *ctdb, uint32_t destnode,
|
||||
struct ctdb_control_state *state;
|
||||
size_t len;
|
||||
|
||||
if (ctdb->methods == NULL) {
|
||||
DEBUG(DEBUG_ERR,(__location__ " Failed to send control. Transport is DOWN\n"));
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (((destnode == CTDB_BROADCAST_VNNMAP) ||
|
||||
(destnode == CTDB_BROADCAST_ALL) ||
|
||||
(destnode == CTDB_BROADCAST_CONNECTED)) &&
|
||||
|
Loading…
Reference in New Issue
Block a user