ctdb-daemon: Replace function ctdb_ip_to_nodeid() with ctdb_ip_to_pnn()
authorMartin Schwenke <martin@meltin.net>
Fri, 21 Jun 2019 19:53:15 +0000 (05:53 +1000)
committerAmitay Isaacs <amitay@samba.org>
Fri, 5 Jul 2019 05:03:23 +0000 (05:03 +0000)
commit010c1d77cd7e192b1fff39b7b91fccbdbbf4a786
treeb254307ce73b7f7eb5cc44defe5d851496745a61
parent888ecc74ed1a6617b8a0a4450b671cf5f6d88f8b
ctdb-daemon: Replace function ctdb_ip_to_nodeid() with ctdb_ip_to_pnn()

Node ID is a poorly defined concept, indicating the slot in the node
map where the IP address was found.  This signed value also ends up
compared to num_nodes, which is unsigned, producing unwanted warnings.

Just return the PNN because this what both callers really want.

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