dovecot: mail_index_refresh(): If index is in memory, we should ...

dovecot at dovecot.org dovecot at dovecot.org
Sat Nov 10 17:53:40 EET 2007


details:   http://hg.dovecot.org/dovecot/rev/b3de2053937f
changeset: 6755:b3de2053937f
user:      Timo Sirainen <tss at iki.fi>
date:      Sat Nov 10 17:40:11 2007 +0200
description:
mail_index_refresh(): If index is in memory, we should still refresh the map
in case we ourself had committed transactions. Also don't bother checking if
index is exclusively locked, it never happens anymore.

diffstat:

1 file changed, 9 deletions(-)
src/lib-index/mail-index.c |    9 ---------

diffs (19 lines):

diff -r 4b92160ac256 -r b3de2053937f src/lib-index/mail-index.c
--- a/src/lib-index/mail-index.c	Thu Nov 08 22:16:47 2007 +0200
+++ b/src/lib-index/mail-index.c	Sat Nov 10 17:40:11 2007 +0200
@@ -503,15 +503,6 @@ int mail_index_refresh(struct mail_index
 {
 	int ret;
 
-	if (MAIL_INDEX_IS_IN_MEMORY(index))
-		return 0;
-
-	if (index->excl_lock_count > 0) {
-		/* we have index exclusively locked, nothing could
-		   have changed. */
-		return 0;
-	}
-
 	ret = mail_index_map(index, MAIL_INDEX_SYNC_HANDLER_HEAD);
 	return ret <= 0 ? -1 : 0;
 }


More information about the dovecot-cvs mailing list