ctdb-recoverd: Add PNN to recovery daemon context
authorMartin Schwenke <martin@meltin.net>
Wed, 8 Dec 2021 23:33:17 +0000 (10:33 +1100)
committerMartin Schwenke <martins@samba.org>
Mon, 17 Jan 2022 10:21:32 +0000 (10:21 +0000)
commit9dbe7cc85e41ce4f9163d8298ba9fb20052db894
tree64069f901a318cdc9a122e4596f31fa33e2571ff
parentff0140e470016a7a2b5365c06f4d912e7a7c8af8
ctdb-recoverd: Add PNN to recovery daemon context

This is currently referenced in a number of inconsistent
ways, including:

* pnn
* rec->ctdb->pnn
* ctdb->pnn
* ctdb_get_pnn(ctdb)
* ctdb_get_pnn(rec->ctdb)

The first of these always requires some thought about the context - is
this the node PNN or some other PNN (e.g. argument to function)?

The intention is to always use rec->pnn when referring to the recovery
daemon's PNN.

Doing this also reduces reliance on struct ctdb_context internals.

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