dovecot-2.2: fts: If mail indexing fails, don't log a "BUG: Unkn...
dovecot at dovecot.org
dovecot at dovecot.org
Wed Jun 3 18:53:06 UTC 2015
details: http://hg.dovecot.org/dovecot-2.2/rev/588e141980e2
changeset: 18821:588e141980e2
user: Timo Sirainen <tss at iki.fi>
date: Wed Jun 03 21:50:40 2015 +0300
description:
fts: If mail indexing fails, don't log a "BUG: Unknown internal error"
diffstat:
src/plugins/fts/fts-storage.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diffs (23 lines):
diff -r 9e7d1e2acd23 -r 588e141980e2 src/plugins/fts/fts-storage.c
--- a/src/plugins/fts/fts-storage.c Wed Jun 03 21:49:52 2015 +0300
+++ b/src/plugins/fts/fts-storage.c Wed Jun 03 21:50:40 2015 +0300
@@ -448,6 +448,7 @@
while (mailbox_search_next(ctx, &mail)) {
if (fts_build_mail(update_ctx, mail) < 0) {
+ mail_storage_set_internal_error(trans->box->storage);
ret = -1;
break;
}
@@ -504,8 +505,10 @@
if (ft->next_index_seq == _mail->seq) {
fts_backend_update_set_mailbox(flist->update_ctx, _mail->box);
- if (fts_build_mail(flist->update_ctx, _mail) < 0)
+ if (fts_build_mail(flist->update_ctx, _mail) < 0) {
+ mail_storage_set_internal_error(_mail->box->storage);
ft->failed = TRUE;
+ }
ft->next_index_seq = _mail->seq + 1;
}
}
More information about the dovecot-cvs
mailing list