Mercurial > dovecot > original-hg > dovecot-1.2
changeset 5620:85ae96fc1375 HEAD
Log an error if pwrite_full() fails while overwriting index mapping.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Mon, 14 May 2007 02:01:25 +0300 |
parents | 121af23cfc65 |
children | eba408782747 |
files | src/lib-index/mail-index-lock.c |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-index/mail-index-lock.c Sun May 13 21:47:42 2007 +0300 +++ b/src/lib-index/mail-index-lock.c Mon May 14 02:01:25 2007 +0300 @@ -384,8 +384,11 @@ } else { /* write the modified parts. header is small enough to be always written, write_seq_* specifies the record range. */ - if (mail_index_write_map_over(index) < 0) + if (mail_index_write_map_over(index) < 0) { + mail_index_set_error(index, + "pwrite_full(%s) failed: %m", index->filepath); mail_index_set_inconsistent(index); + } } map->write_to_disk = FALSE;