schannel Change to TDB_CLEAR_IF_FIRST to reduce fsync()
authorAndrew Bartlett <abartlet@samba.org>
Wed, 23 Jun 2010 00:37:13 +0000 (10:37 +1000)
committerJeremy Allison <jra@samba.org>
Fri, 25 Jun 2010 19:00:36 +0000 (12:00 -0700)
commitc84b74dddd6c74ad28597f069a43a0a3d334b04a
tree869fe6721689766b6f270273dd5c2a6e0ec56b4f
parentcfece164981142168aa6c846c7433f0459fb6de7
schannel Change to TDB_CLEAR_IF_FIRST to reduce fsync()

By making this DB TDB_NOSYNC, and by making that safe with
TDB_CLEAR_IF_FIRST, we greatly reduce the fsync() load on the server.

This particularly helps the source4/ 'make test', which otherwise tries
to disable fsync() in ldb.

Andrew Bartlett

Signed-off-by: Jeremy Allison <jra@samba.org>
libcli/auth/schannel_state_tdb.c