From: Michael Adam Date: Tue, 28 Jan 2014 10:44:21 +0000 (+0100) Subject: dbwrap: add a comment explaining the supported lock orders X-Git-Tag: tdb-1.2.13~672 X-Git-Url: http://git.samba.org/samba.git/?p=kai%2Fsamba-autobuild%2F.git;a=commitdiff_plain;h=99140170a587102493e9f073145ba941987d01d3 dbwrap: add a comment explaining the supported lock orders Signed-off-by: Michael Adam Reviewed-by: Stefan Metzmacher --- 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