dbwrap: introduce DBWRAP_LOCK_ORDER_NONE for lock order "0".
authorMichael Adam <obnox@samba.org>
Mon, 27 Jan 2014 16:20:56 +0000 (17:20 +0100)
committerStefan Metzmacher <metze@samba.org>
Fri, 7 Feb 2014 15:06:07 +0000 (16:06 +0100)
commit4eb57bd6e7e9cdb6de5cb7510267a71917cfe393
tree173cf8f41d2a284fab7c600a4bab917033c4c2df
parent7e766a0a8ade1f018015684c22bda82595a33d38
dbwrap: introduce DBWRAP_LOCK_ORDER_NONE for lock order "0".

Ther are still some databases which are opened (locally) with
lock oder 0, which means don't do lock oder checking,
thereby circumventing this deadlock-prevention mechanism.

Add a symbolic constant for this "0" to make this circumvention
more explicit.

Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
lib/dbwrap/dbwrap.c
lib/dbwrap/dbwrap.h