[SCM] Samba Shared Repository - branch v3-3-test updated - release-3-2-0pre2-4802-g0e058da

Jeremy Allison jra at samba.org
Wed Jan 7 19:02:37 GMT 2009


The branch, v3-3-test has been updated
       via  0e058da2ee3f70e66cdf5d27f7deb479fb4ccae0 (commit)
      from  77a4a3976af353f517b5193bae9cfbe0f3ad6f4c (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-3-test


- Log -----------------------------------------------------------------
commit 0e058da2ee3f70e66cdf5d27f7deb479fb4ccae0
Author: boyang <boyang at suse.de>
Date:   Wed Jan 7 11:01:48 2009 -0800

    refresh sequence number as soon as possible when domain->sequence_number == -1 or domain->last_status is not ok.

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

Summary of changes:
 source/winbindd/winbindd_cache.c |   11 ++++++++---
 1 files changed, 8 insertions(+), 3 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source/winbindd/winbindd_cache.c b/source/winbindd/winbindd_cache.c
index 1ae7966..863852e 100644
--- a/source/winbindd/winbindd_cache.c
+++ b/source/winbindd/winbindd_cache.c
@@ -486,7 +486,9 @@ static void refresh_sequence_number(struct winbindd_domain *domain, bool force)
 	time_diff = t - domain->last_seq_check;
 
 	/* see if we have to refetch the domain sequence number */
-	if (!force && (time_diff < cache_time)) {
+	if (!force && (time_diff < cache_time) &&
+			(domain->sequence_number != DOM_SEQUENCE_NONE) &&
+			NT_STATUS_IS_OK(domain->last_status)) {
 		DEBUG(10, ("refresh_sequence_number: %s time ok\n", domain->name));
 		goto done;
 	}
@@ -495,8 +497,11 @@ static void refresh_sequence_number(struct winbindd_domain *domain, bool force)
 	/* this will update the timestamp as well */
 	
 	status = fetch_cache_seqnum( domain, t );
-	if ( NT_STATUS_IS_OK(status) )
-		goto done;	
+	if (NT_STATUS_IS_OK(status) &&
+			(domain->sequence_number != DOM_SEQUENCE_NONE) &&
+			NT_STATUS_IS_OK(domain->last_status)) {
+		goto done;
+	}
 
 	/* important! make sure that we know if this is a native 
 	   mode domain or not.  And that we can contact it. */


-- 
Samba Shared Repository


More information about the samba-cvs mailing list