dovecot-2.0: fts: Don't notify storage about finishing indexing ...
dovecot at dovecot.org
dovecot at dovecot.org
Thu Mar 17 19:02:54 EET 2011
details: http://hg.dovecot.org/dovecot-2.0/rev/3d48418b0501
changeset: 12691:3d48418b0501
user: Timo Sirainen <tss at iki.fi>
date: Thu Mar 17 19:02:26 2011 +0200
description:
fts: Don't notify storage about finishing indexing if notify_ok callback is NULL.
diffstat:
src/plugins/fts/fts-storage.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diffs (13 lines):
diff -r 02829f7f79c7 -r 3d48418b0501 src/plugins/fts/fts-storage.c
--- a/src/plugins/fts/fts-storage.c Thu Mar 17 16:21:00 2011 +0200
+++ b/src/plugins/fts/fts-storage.c Thu Mar 17 19:02:26 2011 +0200
@@ -546,7 +546,8 @@
}
if (ioloop_time - ctx->search_start_time.tv_sec >=
- FTS_BUILD_NOTIFY_INTERVAL_SECS) {
+ FTS_BUILD_NOTIFY_INTERVAL_SECS &&
+ box->storage->callbacks.notify_ok != NULL) {
/* we notified at least once */
box->storage->callbacks.
notify_ok(box, "Mailbox indexing finished",
More information about the dovecot-cvs
mailing list