diff options
author | Ronnie Sahlberg <ronniesahlberg@gmail.com> | 2008-07-18 10:59:34 +1000 |
---|---|---|
committer | Ronnie Sahlberg <ronniesahlberg@gmail.com> | 2008-07-18 10:59:34 +1000 |
commit | 66919db3d7ab1e091223faf515b183af8bfddc83 (patch) | |
tree | e6b3b3c62596a47677cb6b74dc036f90a6e574f0 /ctdb/tcp | |
parent | 6d5f96c24911f474a1d288f37271e5dbdd878528 (diff) | |
download | samba-66919db3d7ab1e091223faf515b183af8bfddc83.tar.gz |
We can not assume that just because we could complete a TCP handshake
to the remote node that
1, we are in fact talking to a CTDB daemon
2, that IF we are talking to a ctdb daemon, it is operational.
So, we can not blindly mark the node as CONNECTED just because
we can open a TCP connection.
Instead we rely on "If we did get a KEEPALIVE from the remote node,
is is connected"
(This used to be ctdb commit 60e2cb175c449ae65793a3e1ffb60cf030a3a0d5)
Diffstat (limited to 'ctdb/tcp')
-rw-r--r-- | ctdb/tcp/tcp_connect.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/ctdb/tcp/tcp_connect.c b/ctdb/tcp/tcp_connect.c index f3b4f7d3089..906a665d044 100644 --- a/ctdb/tcp/tcp_connect.c +++ b/ctdb/tcp/tcp_connect.c @@ -100,9 +100,6 @@ static void ctdb_node_connect_write(struct event_context *ev, struct fd_event *f /* the queue subsystem now owns this fd */ tnode->fd = -1; - - /* tell the ctdb layer we are connected */ - node->ctdb->upcalls->node_connected(node); } |