changeset 561:a48ef667e709 HEAD

more lock fixes
author Timo Sirainen <tss@iki.fi>
date Sun, 03 Nov 2002 00:51:11 +0200
parents 08d5e82b9068
children ca988d72265b
files src/lib-index/mbox/mbox-sync.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/lib-index/mbox/mbox-sync.c	Sun Nov 03 00:47:33 2002 +0200
+++ b/src/lib-index/mbox/mbox-sync.c	Sun Nov 03 00:51:11 2002 +0200
@@ -51,7 +51,6 @@
 
 	if (changes != NULL)
 		*changes = FALSE;
-	index->mbox_sync_counter = index->mbox_lock_counter;
 
 	if (index->fd == -1) {
 		/* anon-mmaped */
@@ -127,5 +126,6 @@
 			return FALSE;
 	}
 
+	index->mbox_sync_counter = index->mbox_lock_counter;
 	return TRUE;
 }