[SCM] Samba Shared Repository - branch master updated

Bo Yang boyang at samba.org
Thu Mar 4 19:34:35 MST 2010


The branch, master has been updated
       via  aaafadb... s3: Fix unnecessary traversing winbindd_cache.tdb in SIGHUP handler.
      from  25a0750... s4-python: only install external python libs that are missing

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit aaafadb7d5a835f88fce3fbea8127d9c5ddb7181
Author: Bo Yang <boyang at samba.org>
Date:   Sat Mar 6 20:58:23 2010 +0800

    s3: Fix unnecessary traversing winbindd_cache.tdb in SIGHUP handler.
    
    Signed-off-by: Bo Yang <boyang at samba.org>

-----------------------------------------------------------------------

Summary of changes:
 source3/winbindd/winbindd_cache.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source3/winbindd/winbindd_cache.c b/source3/winbindd/winbindd_cache.c
index 0e17253..db2f3b6 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;
 			}


-- 
Samba Shared Repository


More information about the samba-cvs mailing list