dovecot: Optimization fix: We always read dovecot-uidlist from t...

dovecot at dovecot.org dovecot at dovecot.org
Sat Jan 19 08:51:03 EET 2008


details:   http://hg.dovecot.org/dovecot/rev/b9d78196e9ba
changeset: 7169:b9d78196e9ba
user:      Timo Sirainen <tss at iki.fi>
date:      Sat Jan 19 08:50:56 2008 +0200
description:
Optimization fix: We always read dovecot-uidlist from the beginning of the
file even though we could have just read the new lines.

diffstat:

1 file changed, 1 insertion(+), 1 deletion(-)
src/lib-storage/index/maildir/maildir-uidlist.c |    2 +-

diffs (12 lines):

diff -r e33119f2dfdc -r b9d78196e9ba src/lib-storage/index/maildir/maildir-uidlist.c
--- a/src/lib-storage/index/maildir/maildir-uidlist.c	Sat Jan 19 08:29:05 2008 +0200
+++ b/src/lib-storage/index/maildir/maildir-uidlist.c	Sat Jan 19 08:50:56 2008 +0200
@@ -578,7 +578,7 @@ maildir_uidlist_update_read(struct maild
 	}
 
 	input = i_stream_create_fd(fd, 4096, FALSE);
-	i_stream_seek(input, uidlist->last_read_offset);
+	i_stream_seek(input, last_read_offset);
 
 	orig_next_uid = uidlist->next_uid;
 	ret = input->v_offset != 0 ? 1 :


More information about the dovecot-cvs mailing list