r3357: removed the need to use TDB_CLEAR_IF_FIRST in Samba4.
authorAndrew Tridgell <tridge@samba.org>
Fri, 29 Oct 2004 07:29:26 +0000 (07:29 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:05:00 +0000 (13:05 -0500)
commitdbf03959244c392073281c10badd2095397ad2f2
tree427e9fb6143cd2a2b66b6804a8c5339272115e47
parent0caeda53d37740d18b38e6d37d0ecef8c6336820
r3357: removed the need to use TDB_CLEAR_IF_FIRST in Samba4.

We found a few months ago that TDB_CLEAR_IF_FIRST is extremely
inefficient for large numbers of connections, due to a fundamental
limitation in the way posix byte range locking is implemented. Rather
than the nasty workaround we had for Samba3, we now have a single
"cleanup tmp files" function that runs when smbd starts. That deletes
the tmp tdbs, so TDB_CLEAR_IF_FIRST is not needed at all.
(This used to be commit ffa285bc783c775a2d53a58fb691ca339e6c76ae)
source4/lib/util.c
source4/libcli/unexpected.c
source4/ntvfs/common/brlock.c
source4/ntvfs/common/opendb.c
source4/smbd/rewrite.c
source4/smbd/service.c