dbwrap: completely check validity of lock order in dbwrap_check_lock_order()
authorMichael Adam <obnox@samba.org>
Mon, 27 Jan 2014 16:34:31 +0000 (17:34 +0100)
committerStefan Metzmacher <metze@samba.org>
Fri, 7 Feb 2014 15:06:07 +0000 (16:06 +0100)
commitc7961ee4953dbcc8c45790d3c92fe3172e924f47
treea6edc71b553e6c55034001eaca268cbab49409b6
parent99140170a587102493e9f073145ba941987d01d3
dbwrap: completely check validity of lock order in dbwrap_check_lock_order()

This is currently not strictly necessay, because the
only caller catches the DBWRAP_LOCK_ORDER_NONE case,
and maximum is already checked,  but this seems too dangerous to me.

Use the new DBWRAP_LOCK_ORDER_VALID() macro.

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