1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00
samba-mirror/ctdb/tcp
Martin Schwenke 6fbd3ea2c2 ctdbd: Initialise the node flags in just one place
Currently flags are initialised in 2 places.  One of them is in
ctdb_tcp_listen_automatic(), which just seems wrong.  This makes the
code easier to follow by just doing it in ctdb_start_daemon().

This means that the flags are now initialised later than previously.
However, it is still done before the transport is started and before
clients can connect.

In future it might make sense to do a similar thing with setting the
PNN.  However, the current optimisation is reasonably obvious...

Signed-off-by: Martin Schwenke <martin@meltin.net>
Pair-programmed-with: Amitay Isaacs <amitay@gmail.com>

(This used to be ctdb commit 2bbee8ac23ad5b7adf7122d8c91d5f0d54582507)
2013-01-07 10:35:39 +11:00
..
ctdb_tcp.h Added some #ifndefs to stop files being included multiple times. 2011-11-11 14:31:50 +11:00
tcp_connect.c ctdbd: Initialise the node flags in just one place 2013-01-07 10:35:39 +11:00
tcp_init.c Remove explicit include of lib/tevent/tevent.h. 2012-04-13 17:28:14 +10:00
tcp_io.c Remove explicit include of lib/tevent/tevent.h. 2012-04-13 17:28:14 +10:00