dovecot-2.2: lib-index: MAIL_INDEX_OPEN_FLAG_SAVEONLY may have c...
dovecot at dovecot.org
dovecot at dovecot.org
Sat Jan 5 01:14:33 EET 2013
details: http://hg.dovecot.org/dovecot-2.2/rev/8252bcd7c489
changeset: 15505:8252bcd7c489
user: Timo Sirainen <tss at iki.fi>
date: Sun Nov 04 17:26:24 2012 +0200
description:
lib-index: MAIL_INDEX_OPEN_FLAG_SAVEONLY may have caused stale data to be read from cache.
diffstat:
src/lib-index/mail-cache.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diffs (12 lines):
diff -r 2de37734d0b9 -r 8252bcd7c489 src/lib-index/mail-cache.c
--- a/src/lib-index/mail-cache.c Sat Nov 03 18:43:00 2012 +0200
+++ b/src/lib-index/mail-cache.c Sun Nov 04 17:26:24 2012 +0200
@@ -751,6 +751,8 @@
if (cache->file_cache != NULL)
file_cache_write(cache->file_cache, data, size, offset);
+ if (cache->read_buf != NULL)
+ buffer_set_used_size(cache->read_buf, 0);
return 0;
}
More information about the dovecot-cvs
mailing list