dovecot-2.1: lib-storage: Minor error handling cleanups.
dovecot at dovecot.org
dovecot at dovecot.org
Fri Sep 16 16:59:32 EEST 2011
details: http://hg.dovecot.org/dovecot-2.1/rev/1903d5fd7e76
changeset: 13474:1903d5fd7e76
user: Timo Sirainen <tss at iki.fi>
date: Thu Sep 08 11:16:55 2011 +0300
description:
lib-storage: Minor error handling cleanups.
diffstat:
src/lib-storage/index/dbox-common/dbox-storage.c | 3 +--
src/lib-storage/index/dbox-single/sdbox-storage.c | 3 +--
src/lib-storage/index/index-storage.c | 2 +-
3 files changed, 3 insertions(+), 5 deletions(-)
diffs (38 lines):
diff -r 1a6528646e11 -r 1903d5fd7e76 src/lib-storage/index/dbox-common/dbox-storage.c
--- a/src/lib-storage/index/dbox-common/dbox-storage.c Thu Sep 01 19:33:22 2011 +0300
+++ b/src/lib-storage/index/dbox-common/dbox-storage.c Thu Sep 08 11:16:55 2011 +0300
@@ -202,8 +202,7 @@
ret = mail_index_sync_begin(box->index, &sync_ctx, &view, &trans, 0);
if (ret <= 0) {
i_assert(ret != 0);
- mail_storage_set_internal_error(box->storage);
- mail_index_reset_error(box->index);
+ mail_storage_set_index_error(box);
return -1;
}
diff -r 1a6528646e11 -r 1903d5fd7e76 src/lib-storage/index/dbox-single/sdbox-storage.c
--- a/src/lib-storage/index/dbox-single/sdbox-storage.c Thu Sep 01 19:33:22 2011 +0300
+++ b/src/lib-storage/index/dbox-single/sdbox-storage.c Thu Sep 08 11:16:55 2011 +0300
@@ -180,8 +180,7 @@
sdbox_update_header(mbox, trans, update);
if (new_trans != NULL) {
if (mail_index_transaction_commit(&new_trans) < 0) {
- mail_storage_set_internal_error(box->storage);
- mail_index_reset_error(box->index);
+ mail_storage_set_index_error(box);
return -1;
}
}
diff -r 1a6528646e11 -r 1903d5fd7e76 src/lib-storage/index/index-storage.c
--- a/src/lib-storage/index/index-storage.c Thu Sep 01 19:33:22 2011 +0300
+++ b/src/lib-storage/index/index-storage.c Thu Sep 08 11:16:55 2011 +0300
@@ -404,7 +404,7 @@
}
if ((ret = mail_index_transaction_commit(&trans)) < 0)
- mail_storage_set_internal_error(box->storage);
+ mail_storage_set_index_error(box);
mail_index_view_close(&view);
return ret;
}
More information about the dovecot-cvs
mailing list