summaryrefslogtreecommitdiff
path: root/ctdb
diff options
context:
space:
mode:
authorMartin Schwenke <martin@meltin.net>2019-10-29 15:25:26 +1100
committerAmitay Isaacs <amitay@samba.org>2019-11-06 01:22:30 +0000
commite62b3a05a874db13a848573d2e2fb1c157393b9c (patch)
treef879ad6cb9afe47440e5e38d571f3c70ce76b2e3 /ctdb
parentff47cc661d432a9337ade9a232a4f49164652812 (diff)
downloadsamba-e62b3a05a874db13a848573d2e2fb1c157393b9c.tar.gz
ctdb-tcp: Check incoming queue to see if incoming connection is up
This makes it consistent with the reverse case. Also, in_fd will soon be removed. BUG: https://bugzilla.samba.org/show_bug.cgi?id=14175 Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
Diffstat (limited to 'ctdb')
-rw-r--r--ctdb/tcp/tcp_connect.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ctdb/tcp/tcp_connect.c b/ctdb/tcp/tcp_connect.c
index 6123380ca9f..5bcb5216bd2 100644
--- a/ctdb/tcp/tcp_connect.c
+++ b/ctdb/tcp/tcp_connect.c
@@ -153,7 +153,7 @@ static void ctdb_node_connect_write(struct tevent_context *ev,
* as connected, but only if the corresponding listening
* socket is also connected
*/
- if (tnode->in_fd != -1) {
+ if (tnode->in_queue != NULL) {
node->ctdb->upcalls->node_connected(node);
}
}