[dovecot-cvs] dovecot-1.0: Cache compression actually lost the cache with non-...

dovecot at dovecot.org dovecot at dovecot.org
Tue May 22 20:30:05 EEST 2007


details:   http://hg.dovecot.org/dovecot-1.0/rev/da07b096e1b5
changeset: 5285:da07b096e1b5
user:      Timo Sirainen <tss at iki.fi>
date:      Tue May 22 20:30:01 2007 +0300
description:
Cache compression actually lost the cache with non-x86 CPU and 64bit file
offsets.

diffstat:

1 file changed, 3 insertions(+), 2 deletions(-)
src/lib-index/mail-cache-compress.c |    5 +++--

diffs (22 lines):

diff -r 651679174b85 -r da07b096e1b5 src/lib-index/mail-cache-compress.c
--- a/src/lib-index/mail-cache-compress.c	Tue May 22 03:58:29 2007 +0300
+++ b/src/lib-index/mail-cache-compress.c	Tue May 22 20:30:01 2007 +0300
@@ -123,7 +123,7 @@ mail_cache_copy(struct mail_cache *cache
 	struct mail_cache_record cache_rec;
 	struct ostream *output;
 	buffer_t *buffer;
-	uint32_t i, message_count, seq, first_new_seq, old_offset;
+	uint32_t i, message_count, seq, first_new_seq, ext_offset, old_offset;
 	uoff_t offset;
 
 	/* get sequence of first message which doesn't need its temp fields
@@ -179,7 +179,8 @@ mail_cache_copy(struct mail_cache *cache
 		if (cache_rec.size == sizeof(cache_rec))
 			continue;
 
-		mail_index_update_ext(t, seq, cache->ext_id, &output->offset,
+		ext_offset = output->offset;
+		mail_index_update_ext(t, seq, cache->ext_id, &ext_offset,
 				      &old_offset);
 
 		buffer_write(ctx.buffer, 0, &cache_rec, sizeof(cache_rec));


More information about the dovecot-cvs mailing list