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@gmail.com>
Mon, 15 Jun 2015 02:13:01 +0000 (12:13 +1000)
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>
(Imported from commit 89849c4d31c0bb0c47864e11abc89efe7d812d87)

server/ctdb_lock.c

index 22a6eea568aca824b017242919660a609fd9134e..397c11b85d84b9d0d62da963da5b7efd6fa3ef06 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 {