s3: Make sure our CLEAR_IF_FIRST optimization works for messaging.tdb
authorVolker Lendecke <vl@samba.org>
Thu, 25 Mar 2010 14:59:41 +0000 (15:59 +0100)
committerVolker Lendecke <vl@samba.org>
Thu, 25 Mar 2010 15:40:44 +0000 (16:40 +0100)
commit4cdbe07b2563b56c2d8b9a5733eedf25245ba86b
tree4d1bfeb88718fa894ff00ac02b17b2404548babd
parentf20bdd32ddabf79800c876fa94b65b928bea3c30
s3: Make sure our CLEAR_IF_FIRST optimization works for messaging.tdb

In the child, we fully re-open messaging.tdb, which leads to one fcntl lock for
CLEAR_IF_FIRST detection per smbd. This opens the tdb in the parent and holds
it, so that tdb_reopen_all correctly catches the CLEAR_IF_FIRST bit.
source3/include/messages.h
source3/lib/messages_local.c
source3/smbd/server.c