diff options
author | Volker Lendecke <vl@samba.org> | 2009-07-13 17:04:29 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2009-07-15 10:55:20 +0200 |
commit | 8a17cd810fa6cbe7b11139ff0f6f24e7bacd318b (patch) | |
tree | 5f9be97803ea334fc85a16d5d3a647018e220482 /source3/winbindd | |
parent | ed87594e5fd3251f9cb3beaca06c8eee1dcd4ed2 (diff) | |
download | samba-8a17cd810fa6cbe7b11139ff0f6f24e7bacd318b.tar.gz samba-8a17cd810fa6cbe7b11139ff0f6f24e7bacd318b.tar.bz2 samba-8a17cd810fa6cbe7b11139ff0f6f24e7bacd318b.zip |
Make gencache more stable
This provides a compromise between stability and performance: gencache is a
persistent database these days that for performance reasons can not use tdb
transactions for all writes. This patch splits up gencache into gencache.tdb
and gencache_notrans.tdb. gencache_notrans is used with CLEAR_IF_FIRST, writes
to it don't use transactions. By default every 5 minutes and when a program
exits, all entries from _notrans.tdb are transferred to gencache.tdb in one
transaction.
Diffstat (limited to 'source3/winbindd')
-rw-r--r-- | source3/winbindd/winbindd.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/winbindd/winbindd.c b/source3/winbindd/winbindd.c index d617fe1f0b..34eaeb2d79 100644 --- a/source3/winbindd/winbindd.c +++ b/source3/winbindd/winbindd.c @@ -163,6 +163,8 @@ static void terminate(bool is_parent) trustdom_cache_shutdown(); + gencache_stabilize(); + #if 0 if (interactive) { TALLOC_CTX *mem_ctx = talloc_init("end_description"); |