1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00
samba-mirror/ctdb/server
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_banning.c Remove explicit include of lib/tevent/tevent.h. 2012-04-13 17:28:14 +10:00
ctdb_call.c STATISTICS: Add tracking of the 10 hottest keys per database measured in hopcount 2012-06-13 16:19:18 +10:00
ctdb_control.c Run the shutdown eventscript before we tear down the transport 2012-05-30 11:51:38 +10:00
ctdb_daemon.c ctdbd: Initialise the node flags in just one place 2013-01-07 10:35:39 +11:00
ctdb_freeze.c ctdb_freeze: Replace locking functions with locking API 2012-10-20 02:48:44 +11:00
ctdb_keepalive.c Remove explicit include of lib/tevent/tevent.h. 2012-04-13 17:28:14 +10:00
ctdb_lock.c daemon: Add a tunable to enable automatic database priority setting 2013-01-05 01:14:57 +01:00
ctdb_logging.c Logging: Map TEVENT_DEBUG_FATAL to DEBUG_CRIT 2012-10-18 20:05:42 +11:00
ctdb_ltdb_server.c Add a \n to an error message 2012-10-25 17:11:15 +11:00
ctdb_monitor.c Remove explicit include of lib/tevent/tevent.h. 2012-04-13 17:28:14 +10:00
ctdb_persistent.c Remove explicit include of lib/tevent/tevent.h. 2012-04-13 17:28:14 +10:00
ctdb_recover.c ctdb:recover: fix a comment typo 2013-01-05 01:15:19 +01:00
ctdb_recoverd.c recovery: data corruption of persistent DBs after recoveries: don't delete emtpy records 2012-11-20 00:48:24 +01:00
ctdb_server.c ctdbd: Initialise the node flags in just one place 2013-01-07 10:35:39 +11:00
ctdb_serverids.c RB_TREE: Add mechanism to abort a traverse 2011-11-08 13:40:28 +11:00
ctdb_statistics.c Remove explicit include of lib/tevent/tevent.h. 2012-04-13 17:28:14 +10:00
ctdb_takeover.c ctdbd: Make the link status of new interfaces more flexible 2012-11-19 15:53:13 +11:00
ctdb_traverse.c Track all child process so we never send a signal to an unrelated process (our child died and kernel wrapped the pid-space and reused the pid for a different process 2012-05-03 14:03:26 +10:00
ctdb_tunables.c daemon: Add a tunable to enable automatic database priority setting 2013-01-05 01:14:57 +01:00
ctdb_update_record.c Track all child process so we never send a signal to an unrelated process (our child died and kernel wrapped the pid-space and reused the pid for a different process 2012-05-03 14:03:26 +10:00
ctdb_uptime.c Remove explicit include of lib/tevent/tevent.h. 2012-04-13 17:28:14 +10:00
ctdb_vacuum.c vacuum: Avoid some tallocs in ctdb recovery 2012-11-26 10:31:53 +11:00
ctdbd.c ctdbd: Initialise the node flags in just one place 2013-01-07 10:35:39 +11:00
eventscript.c ctdbd: Remove references to forcing running of eventscripts from log messages 2012-10-18 20:05:43 +11:00