Mercurial > dovecot > original-hg > dovecot-1.2
changeset 6367:b5dd8d64b4ae HEAD
Fix for mmap_disable=yes
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sun, 09 Sep 2007 06:42:10 +0300 |
parents | 1c90552923ba |
children | a930c2ecd73c |
files | src/lib-index/mailbox-list-index-sync.c |
diffstat | 1 files changed, 0 insertions(+), 9 deletions(-) [+] |
line wrap: on
line diff
--- 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 @@ 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) {