dovecot: Fix for mmap_disable=yes

dovecot at dovecot.org dovecot at dovecot.org
Sun Sep 9 06:42:17 EEST 2007


details:   http://hg.dovecot.org/dovecot/rev/b5dd8d64b4ae
changeset: 6367:b5dd8d64b4ae
user:      Timo Sirainen <tss at iki.fi>
date:      Sun Sep 09 06:42:10 2007 +0300
description:
Fix for mmap_disable=yes

diffstat:

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

diffs (19 lines):

diff -r 1c90552923ba -r b5dd8d64b4ae src/lib-index/mailbox-list-index-sync.c
--- a/src/lib-index/mailbox-list-index-sync.c	Sun Sep 09 06:26:01 2007 +0300
+++ b/src/lib-index/mailbox-list-index-sync.c	Sun Sep 09 06:42:10 2007 +0300
@@ -503,15 +503,6 @@ mailbox_list_index_sync_alloc_space(stru
 	if (ctx->index->mmap_base == NULL) {
 		/* write the data into temporary buffer first */
 		buffer_reset(ctx->output_buf);
-
-		if (ctx->output->offset != pos) {
-			i_assert(pos > ctx->output->offset &&
-				 pos - ctx->output->offset <= 3);
-
-			buffer_append_zero(ctx->output_buf,
-					   pos - ctx->output->offset);
-		}
-
 		*base_r = buffer_append_space_unsafe(ctx->output_buf, size);
 	} else {
 		if (pos + size > ctx->index->mmap_size) {


More information about the dovecot-cvs mailing list