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 15:40:44 +0000 (16:40 +0100)
commited189459b9d7776700ffd353f81b283232940199
tree3e46a1b3c44dd8d66ace3a586918a3aebd3414fd
parent4cdbe07b2563b56c2d8b9a5733eedf25245ba86b
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