scripts: New function ctdb_get_pnn() does cached retrieval of PNN
authorMartin Schwenke <martin@meltin.net>
Fri, 17 Apr 2015 10:44:15 +0000 (20:44 +1000)
committerMartin Schwenke <martin@meltin.net>
Wed, 24 Feb 2016 06:12:39 +0000 (17:12 +1100)
commit5fff429fcf00d6c6d7d919e10a23fa97a5c1eb85
treed72832d8a2bce67da30377119402831b027f490b
parent503d00b8423e2a50b799b75a8f31bdd47affb34a
scripts: New function ctdb_get_pnn() does cached retrieval of PNN

This avoids the expense of establishing a client connection to the
daemon just to get the PNN of the current node.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
(Imported from commit 579dda6858f547d360073cd67235e49ab03b355e)
config/functions