mirror of
https://github.com/samba-team/samba.git
synced 2025-02-28 01:58:17 +03:00
add additional log info to track if/why we cant switch to client mode.
(This used to be ctdb commit 722171fc94a36ffe9e0a5c64502b916fde0a13a4)
This commit is contained in:
parent
98a54c4675
commit
0d48af4741
@ -263,6 +263,7 @@ int ctdb_socket_connect(struct ctdb_context *ctdb)
|
||||
|
||||
ctdb->daemon.sd = socket(AF_UNIX, SOCK_STREAM, 0);
|
||||
if (ctdb->daemon.sd == -1) {
|
||||
DEBUG(DEBUG_ERR,(__location__ " Failed to open client socket. Errno:%s(%d)\n", strerror(errno), errno));
|
||||
return -1;
|
||||
}
|
||||
|
||||
@ -272,6 +273,7 @@ int ctdb_socket_connect(struct ctdb_context *ctdb)
|
||||
if (connect(ctdb->daemon.sd, (struct sockaddr *)&addr, sizeof(addr)) == -1) {
|
||||
close(ctdb->daemon.sd);
|
||||
ctdb->daemon.sd = -1;
|
||||
DEBUG(DEBUG_ERR,(__location__ " Failed to connect client socket to daemon. Errno:%s(%d)\n", strerror(errno), errno));
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user