summaryrefslogtreecommitdiff
path: root/lib/dbwrap
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2014-01-28 11:44:21 +0100
committerStefan Metzmacher <metze@samba.org>2014-02-07 16:06:07 +0100
commit99140170a587102493e9f073145ba941987d01d3 (patch)
treece12147e38ac452d9c7e78a9884cf2022929d219 /lib/dbwrap
parent5e5a31bfb2de9ffa9829db1002118773a22ac9e4 (diff)
downloadsamba-99140170a587102493e9f073145ba941987d01d3.tar.gz
dbwrap: add a comment explaining the supported lock orders
Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'lib/dbwrap')
-rw-r--r--lib/dbwrap/dbwrap.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/dbwrap/dbwrap.h b/lib/dbwrap/dbwrap.h
index 81c4974afb6..d289243f7a6 100644
--- a/lib/dbwrap/dbwrap.h
+++ b/lib/dbwrap/dbwrap.h
@@ -27,6 +27,10 @@ struct db_context;
enum dbwrap_lock_order {
DBWRAP_LOCK_ORDER_NONE = 0, /* Don't check lock orders for this db. */
+ /*
+ * We only allow orders 1, 2, 3:
+ * These are the orders that CTDB currently supports.
+ */
DBWRAP_LOCK_ORDER_1 = 1,
DBWRAP_LOCK_ORDER_2 = 2,
DBWRAP_LOCK_ORDER_3 = 3