ctdb-recovery: Rename recovery lock functions and struct
commit4842b6bb91f3f3b13f2433f222678f84832a29d2
authorMartin Schwenke <martin@meltin.net>
Mon, 11 Jan 2016 03:56:46 +0000 (11 14:56 +1100)
committerAmitay Isaacs <amitay@samba.org>
Thu, 28 Apr 2016 07:39:16 +0000 (28 09:39 +0200)
treef23320db5ab2dc88acfb412a89131a6f78e5f3b4
parent1b607f20322f74c5f8829c5bf21e4f210e467e93
ctdb-recovery: Rename recovery lock functions and struct

Use the more general name "cluster mutex", since we are likely to end
up with more than one cluster-wide lock.  There will probably be a
dedicated recovery lock, held only during recovery, and also a second
lock that is held by the master node.  Currently one lock is used for
both purposes.

At the moment the struct and functions are involved with setting the
recovery mode.  However, they'll be abstracted out to more generally
deal with the cluster mutexes, so "recmode" -> "cluster_mutex".  Drop
"set" from names, since this is used to test the lock.  Also drop
"ctdb" prefix from functions, since they are local to this file.  The
struct will eventually be a long-lived handle that will release the
mutex when freed, so name it accordingly.

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