Mercurial > dovecot > original-hg > dovecot-1.2
changeset 6389:abbea4e5c128 HEAD
write_seq_first/last wasn't updated correctly when appending messages,
causing "messages_count too large" errors.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sat, 15 Sep 2007 15:17:57 +0300 |
parents | 78b9315ed5ff |
children | ff48b008150f |
files | src/lib-index/mail-index-sync-update.c |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-index/mail-index-sync-update.c Sat Sep 15 13:11:22 2007 +0300 +++ b/src/lib-index/mail-index-sync-update.c Sat Sep 15 15:17:57 2007 +0300 @@ -318,8 +318,9 @@ map->rec_map->last_appended_uid = rec->uid; new_flags = rec->flags; - mail_index_sync_write_seq_update(ctx, map->hdr.messages_count, - map->hdr.messages_count); + mail_index_sync_write_seq_update(ctx, + map->rec_map->records_count, + map->rec_map->records_count); } map->hdr.messages_count++;