dovecot-1.1: maildir saving: If fdatasync_path() fails, don't re...
dovecot at dovecot.org
dovecot at dovecot.org
Mon Apr 13 22:52:02 EEST 2009
details: http://hg.dovecot.org/dovecot-1.1/rev/576e77047959
changeset: 8241:576e77047959
user: Timo Sirainen <tss at iki.fi>
date: Mon Apr 13 15:51:52 2009 -0400
description:
maildir saving: If fdatasync_path() fails, don't return "unknown error".
diffstat:
1 file changed, 4 insertions(+), 2 deletions(-)
src/lib-storage/index/maildir/maildir-save.c | 6 ++++--
diffs (21 lines):
diff -r ebec9c600766 -r 576e77047959 src/lib-storage/index/maildir/maildir-save.c
--- a/src/lib-storage/index/maildir/maildir-save.c Sat Apr 11 23:16:44 2009 -0400
+++ b/src/lib-storage/index/maildir/maildir-save.c Mon Apr 13 15:51:52 2009 -0400
@@ -587,13 +587,15 @@ static int maildir_transaction_fsync_dir
if (new_changed) {
if (fdatasync_path(ctx->newdir) < 0) {
- i_error("fdatasync_path(%s) failed: %m", ctx->newdir);
+ mail_storage_set_critical(&ctx->mbox->storage->storage,
+ "fdatasync_path(%s) failed: %m", ctx->newdir);
return -1;
}
}
if (cur_changed) {
if (fdatasync_path(ctx->curdir) < 0) {
- i_error("fdatasync_path(%s) failed: %m", ctx->curdir);
+ mail_storage_set_critical(&ctx->mbox->storage->storage,
+ "fdatasync_path(%s) failed: %m", ctx->curdir);
return -1;
}
}
More information about the dovecot-cvs
mailing list