diff options
author | Volker Lendecke <vl@samba.org> | 2019-09-15 11:56:25 +0200 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2019-09-17 22:49:39 +0000 |
commit | ded3f91d80763edfab242a48baa834e669e16ed5 (patch) | |
tree | 23507223fcf7bc08bed24a07f74bcaa99c553c95 /lib/dbwrap | |
parent | d3b0ed13c223a2e4ff22026cddbc55992f35288d (diff) | |
download | samba-ded3f91d80763edfab242a48baa834e669e16ed5.tar.gz |
lib: Allow a 4th lock order
We will have another tdb soon
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'lib/dbwrap')
-rw-r--r-- | lib/dbwrap/dbwrap.h | 3 | ||||
-rw-r--r-- | lib/dbwrap/dbwrap_private.h | 2 |
2 files changed, 3 insertions, 2 deletions
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) && \ |