From: Volker Lendecke Date: Sun, 15 Sep 2019 09:56:25 +0000 (+0200) Subject: lib: Allow a 4th lock order X-Git-Tag: talloc-2.3.1~780 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ded3f91d80763edfab242a48baa834e669e16ed5;p=thirdparty%2Fsamba.git lib: Allow a 4th lock order We will have another tdb soon Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- diff --git a/lib/dbwrap/dbwrap.h b/lib/dbwrap/dbwrap.h index 42998b78139..591eac5c63a 100644 --- a/lib/dbwrap/dbwrap.h +++ b/lib/dbwrap/dbwrap.h @@ -33,7 +33,8 @@ enum dbwrap_lock_order { DBWRAP_LOCK_ORDER_NONE = 0, /* Don't check lock orders for this db. */ DBWRAP_LOCK_ORDER_1 = 1, DBWRAP_LOCK_ORDER_2 = 2, - DBWRAP_LOCK_ORDER_3 = 3 + DBWRAP_LOCK_ORDER_3 = 3, + DBWRAP_LOCK_ORDER_4 = 4 }; #define DBWRAP_FLAG_NONE 0x0000000000000000ULL diff --git a/lib/dbwrap/dbwrap_private.h b/lib/dbwrap/dbwrap_private.h index e757215d389..b548168b9a9 100644 --- a/lib/dbwrap/dbwrap_private.h +++ b/lib/dbwrap/dbwrap_private.h @@ -84,7 +84,7 @@ struct db_context { }; #define DBWRAP_LOCK_ORDER_MIN DBWRAP_LOCK_ORDER_1 -#define DBWRAP_LOCK_ORDER_MAX DBWRAP_LOCK_ORDER_3 +#define DBWRAP_LOCK_ORDER_MAX DBWRAP_LOCK_ORDER_4 #define DBWRAP_LOCK_ORDER_VALID(order) \ (((order) >= DBWRAP_LOCK_ORDER_MIN) && \