changeset 6372:f33ea6ff46ea HEAD

Drop also exclusive locks when closing index files (there shouldn't be any though).
author Timo Sirainen <tss@iki.fi>
date Sat, 15 Sep 2007 08:54:43 +0300
parents 8468e3babea2
children 06818dd6a952
files src/lib-index/mail-index.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/lib-index/mail-index.c	Sat Sep 15 08:54:09 2007 +0300
+++ b/src/lib-index/mail-index.c	Sat Sep 15 08:54:43 2007 +0300
@@ -541,10 +541,10 @@
 		index->fd = -1;
 	}
 
-	if (index->lock_type == F_RDLCK)
-		index->lock_type = F_UNLCK;
 	index->lock_id_counter += 2;
+	index->lock_type = F_UNLCK;
 	index->shared_lock_count = 0;
+	index->excl_lock_count = 0;
 }
 
 void mail_index_close(struct mail_index *index)