dovecot-2.2: fts-lucene: No .. the rebuilding warning was still ...

dovecot at dovecot.org dovecot at dovecot.org
Thu Sep 11 13:15:09 UTC 2014


details:   http://hg.dovecot.org/dovecot-2.2/rev/ef55b00eef2a
changeset: 17791:ef55b00eef2a
user:      Timo Sirainen <tss at iki.fi>
date:      Thu Sep 11 16:14:24 2014 +0300
description:
fts-lucene: No .. the rebuilding warning was still in the wrong place.

diffstat:

 src/plugins/fts-lucene/fts-backend-lucene.c |  2 --
 src/plugins/fts-lucene/lucene-wrapper.cc    |  2 ++
 2 files changed, 2 insertions(+), 2 deletions(-)

diffs (24 lines):

diff -r 73eb8be089a5 -r ef55b00eef2a src/plugins/fts-lucene/fts-backend-lucene.c
--- a/src/plugins/fts-lucene/fts-backend-lucene.c	Thu Sep 11 16:12:38 2014 +0300
+++ b/src/plugins/fts-lucene/fts-backend-lucene.c	Thu Sep 11 16:14:24 2014 +0300
@@ -197,8 +197,6 @@
 		if (!fts_index_have_compatible_settings(_backend->ns->list,
 							set_checksum)) {
 			/* need to rebuild the index */
-			i_warning("fts-lucene: Settings have changed, rebuilding index for mailbox %s",
-				  mailbox_get_vname(box));
 			*last_uid_r = 0;
 		} else {
 			*last_uid_r = hdr.last_indexed_uid;
diff -r 73eb8be089a5 -r ef55b00eef2a src/plugins/fts-lucene/lucene-wrapper.cc
--- a/src/plugins/fts-lucene/lucene-wrapper.cc	Thu Sep 11 16:12:38 2014 +0300
+++ b/src/plugins/fts-lucene/lucene-wrapper.cc	Thu Sep 11 16:14:24 2014 +0300
@@ -416,6 +416,8 @@
 	if (ret != 0)
 		return ret;
 
+	i_warning("fts-lucene: Settings have changed, rebuilding index for mailbox");
+
 	/* settings changed, rebuild index */
 	if (unlink_directory(index->path, (enum unlink_directory_flags)0) < 0) {
 		i_error("unlink_directory(%s) failed: %m", index->path);


More information about the dovecot-cvs mailing list