summaryrefslogtreecommitdiff
path: root/source3/winbindd
diff options
context:
space:
mode:
authorBo Yang <boyang@samba.org>2010-03-06 20:58:23 +0800
committerBo Yang <boyang@samba.org>2010-03-06 20:58:23 +0800
commitaaafadb7d5a835f88fce3fbea8127d9c5ddb7181 (patch)
treef10c5365e59f5733ca2d97ed7d948a24f85a0fa5 /source3/winbindd
parent25a0750b8184e434e30717bb47f0b36a00e41629 (diff)
downloadsamba-aaafadb7d5a835f88fce3fbea8127d9c5ddb7181.tar.gz
samba-aaafadb7d5a835f88fce3fbea8127d9c5ddb7181.tar.bz2
samba-aaafadb7d5a835f88fce3fbea8127d9c5ddb7181.zip
s3: Fix unnecessary traversing winbindd_cache.tdb in SIGHUP handler.
Signed-off-by: Bo Yang <boyang@samba.org>
Diffstat (limited to 'source3/winbindd')
-rw-r--r--source3/winbindd/winbindd_cache.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/source3/winbindd/winbindd_cache.c b/source3/winbindd/winbindd_cache.c
index 0e17253b7d..db2f3b6b8b 100644
--- a/source3/winbindd/winbindd_cache.c
+++ b/source3/winbindd/winbindd_cache.c
@@ -3042,6 +3042,12 @@ bool wcache_invalidate_cache_noinit(void)
if (cache) {
if (cache->tdb) {
tdb_traverse(cache->tdb, traverse_fn, NULL);
+ /*
+ * Flushing cache has nothing to with domains.
+ * return here if we successfully flushed once.
+ * To avoid unnecessary traversing the cache.
+ */
+ return true;
} else {
return false;
}