ctdb-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)
committerAmitay Isaacs <amitay@samba.org>
Mon, 27 Apr 2015 01:32:10 +0000 (03:32 +0200)
commit579dda6858f547d360073cd67235e49ab03b355e
treebc9f5991216c37d15f2df70278fe8dfb5754fb83
parentec085fe8b3d4f54294194f87a2875d75c4d92c20
ctdb-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>
ctdb/config/functions