ctdb-locking: Add a comment to explain auto_mark usage
authorAmitay Isaacs <amitay@gmail.com>
Tue, 2 Jun 2015 03:15:37 +0000 (13:15 +1000)
committerAmitay Isaacs <amitay@samba.org>
Fri, 12 Jun 2015 10:40:54 +0000 (12:40 +0200)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=11293

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
ctdb/server/ctdb_lock.c

index 7b43b1df353b58c1c4eb045a33078253722f15f6..8b3206d4b65c2548ca1a56b6b261eabcfa20fe59 100644 (file)
  * ctdb_lock_alldb()       - get a lock on all DBs
  *
  *  auto_mark              - whether to mark/unmark DBs in before/after callback
+ *                           = false is used for freezing databases for
+ *                           recovery since the recovery cannot start till
+ *                           databases are locked on all the nodes.
+ *                           = true is used for record locks.
  */
 
 enum lock_type {