Mercurial > dovecot > original-hg > dovecot-1.2
changeset 5235:660763f5e75a HEAD
If write fails with "not enough space" error, log it instead of silently
handling it.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Wed, 07 Mar 2007 02:44:37 +0200 |
parents | f107ddd56550 |
children | 6761b2a46ec3 |
files | src/lib-index/mail-transaction-log-append.c |
diffstat | 1 files changed, 4 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-index/mail-transaction-log-append.c Wed Mar 07 02:42:32 2007 +0200 +++ b/src/lib-index/mail-transaction-log-append.c Wed Mar 07 02:44:37 2007 +0200 @@ -75,12 +75,11 @@ } while (0); /* write failure. */ - if (!ENOSPACE(errno)) { - mail_index_file_set_syscall_error(file->log->index, - file->filepath, - "pwrite_full()"); + mail_index_file_set_syscall_error(file->log->index, + file->filepath, + "pwrite_full()"); + if (!ENOSPACE(errno)) return -1; - } /* not enough space. fallback to in-memory indexes. */ if (mail_index_move_to_memory(file->log->index) < 0)