ctdb-daemon: Set node PNN in one place
authorMartin Schwenke <martin@meltin.net>
Tue, 17 Feb 2015 04:21:15 +0000 (15:21 +1100)
committerAmitay Isaacs <amitay@samba.org>
Mon, 23 Mar 2015 11:23:12 +0000 (12:23 +0100)
commit876529054a00d107ece720771b11b2403bfa608d
tree43f8e67ce50103fbf94d859626f21f44d032a98c
parentdb6385afe9a459e109f785167c02fc1fd6064abf
ctdb-daemon: Set node PNN in one place

This is currently set in 2 places.  One of them makes the node loading
code difficult to refactor.  Also, when the surrounding code in either
place is touched then it might get broken.

This only needs to be done once at startup, not on every reload.  So
do it once in a very obvious way, sacrificing a few CPU cycles for
some added clarity.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
ctdb/server/ctdb_daemon.c
ctdb/server/ctdb_server.c
ctdb/tcp/tcp_connect.c