diff options
author | Amitay Isaacs <amitay@gmail.com> | 2015-06-02 13:15:37 +1000 |
---|---|---|
committer | Amitay Isaacs <amitay@samba.org> | 2015-06-12 12:40:54 +0200 |
commit | 89849c4d31c0bb0c47864e11abc89efe7d812d87 (patch) | |
tree | dfbac41355709372470f4990e350928d3ce508f9 | |
parent | bc747030d435447e62262541cf2e74be4c4229d8 (diff) | |
download | samba-89849c4d31c0bb0c47864e11abc89efe7d812d87.tar.gz |
ctdb-locking: Add a comment to explain auto_mark usage
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>
-rw-r--r-- | ctdb/server/ctdb_lock.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ctdb/server/ctdb_lock.c b/ctdb/server/ctdb_lock.c index 7b43b1df353..8b3206d4b65 100644 --- a/ctdb/server/ctdb_lock.c +++ b/ctdb/server/ctdb_lock.c @@ -41,6 +41,10 @@ * 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 { |