ntdb: don't call open hook when re-opening an existing database.
commit068e0e2b38fb109eb1d1306c6d74bfa86ec0c4b8
authorRusty Russell <rusty@rustcorp.com.au>
Sat, 23 Mar 2013 06:57:57 +0000 (23 17:27 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Sat, 23 Mar 2013 08:39:50 +0000 (23 09:39 +0100)
tree0be134c7602aaf0a2abf0fdb591af3c82c75cfbb
parentfd6d0361d6fef5f8175967ddbae4a2b1d79dfcad
ntdb: don't call open hook when re-opening an existing database.

In particular, the Samba dbwrap wrapper can do this for schannel_store,
with the openhook set to clear the database if it can get the lock
(which, being in the same process, it can).

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Autobuild-User(master): Rusty Russell <rusty@rustcorp.com.au>
Autobuild-Date(master): Sat Mar 23 09:39:50 CET 2013 on sn-devel-104
lib/ntdb/open.c
lib/ntdb/test/api-83-openhook.c