s3: Make sure our CLEAR_IF_FIRST optimization works for the notify tdbs
authorVolker Lendecke <vl@samba.org>
Thu, 25 Mar 2010 15:01:54 +0000 (16:01 +0100)
committerVolker Lendecke <vl@samba.org>
Thu, 25 Mar 2010 16:34:13 +0000 (17:34 +0100)
commit55d99ed57949bde35ea7ba885cbcc82e837d123b
treecebb341f60b09078b66b6504c71714e29019fa2c
parent68a4ea3e0f0e6962a046ede48943659552a2571b
s3: Make sure our CLEAR_IF_FIRST optimization works for the notify tdbs

The notify tdb files are opened at tconX time, which leads to one fcntl lock
for CLEAR_IF_FIRST detection per smbd. This opens the tdbs in the parent and
holds it, so that tdb_reopen_all correctly catches the CLEAR_IF_FIRST bit.
source3/include/proto.h
source3/smbd/notify_internal.c
source3/smbd/server.c