From: Timo Sirainen Date: Mon, 21 Nov 2016 11:29:12 +0000 (+0200) Subject: lib-index: Revert log flooding prevention / 3c014db6f X-Git-Tag: 2.2.27~92 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9627b1a2899f4992e54b68a9ceea5a7a88df86d4;p=thirdparty%2Fdovecot%2Fcore.git lib-index: Revert log flooding prevention / 3c014db6f This was intended only for mmap() errors. --- diff --git a/src/lib-index/mail-index-private.h b/src/lib-index/mail-index-private.h index 4b5ea73d92..8cfb4ffd8c 100644 --- a/src/lib-index/mail-index-private.h +++ b/src/lib-index/mail-index-private.h @@ -215,7 +215,6 @@ struct mail_index { ARRAY(union mail_index_module_context *) module_contexts; char *error; - time_t last_error_time; unsigned int nodiskspace:1; unsigned int index_lock_timeout:1; diff --git a/src/lib-index/mail-index.c b/src/lib-index/mail-index.c index 6d4b8d7c46..12997ba4ba 100644 --- a/src/lib-index/mail-index.c +++ b/src/lib-index/mail-index.c @@ -768,10 +768,7 @@ void mail_index_set_error(struct mail_index *index, const char *fmt, ...) index->error = i_strdup_vprintf(fmt, va); va_end(va); - if (ioloop_time != index->last_error_time) { - index->last_error_time = ioloop_time; - i_error("%s", index->error); - } + i_error("%s", index->error); } }