diff options
author | Michael Adam <obnox@samba.org> | 2014-01-28 11:44:21 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2014-02-07 16:06:07 +0100 |
commit | 99140170a587102493e9f073145ba941987d01d3 (patch) | |
tree | ce12147e38ac452d9c7e78a9884cf2022929d219 /lib/dbwrap/dbwrap.h | |
parent | 5e5a31bfb2de9ffa9829db1002118773a22ac9e4 (diff) | |
download | samba-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/dbwrap.h')
-rw-r--r-- | lib/dbwrap/dbwrap.h | 4 |
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 |