dovecot: Drop also exclusive locks when closing index files (the...
dovecot at dovecot.org
dovecot at dovecot.org
Sat Sep 15 08:56:02 EEST 2007
details: http://hg.dovecot.org/dovecot/rev/f33ea6ff46ea
changeset: 6372:f33ea6ff46ea
user: Timo Sirainen <tss at iki.fi>
date: Sat Sep 15 08:54:43 2007 +0300
description:
Drop also exclusive locks when closing index files (there shouldn't be any
though).
diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
src/lib-index/mail-index.c | 4 ++--
diffs (16 lines):
diff -r 8468e3babea2 -r f33ea6ff46ea src/lib-index/mail-index.c
--- 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 @@ static void mail_index_close_file(struct
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)
More information about the dovecot-cvs
mailing list