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)
commitffa285bc783c775a2d53a58fb691ca339e6c76ae
treea5da082d193a4f1f7ddd5e6838a728bd4eaeb2c8
parentf2a9bbc317ba86ebe87c3ca27a3a0192de91014d
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.
source/lib/util.c
source/libcli/unexpected.c
source/ntvfs/common/brlock.c
source/ntvfs/common/opendb.c
source/smbd/rewrite.c
source/smbd/service.c