dovecot-2.0: fts-solr: Previous change wasn't complete.

dovecot at dovecot.org dovecot at dovecot.org
Wed Jun 23 00:46:15 EEST 2010


details:   http://hg.dovecot.org/dovecot-2.0/rev/29178cec0506
changeset: 11617:29178cec0506
user:      Timo Sirainen <tss at iki.fi>
date:      Tue Jun 22 22:46:11 2010 +0100
description:
fts-solr: Previous change wasn't complete.

diffstat:

 src/plugins/fts-solr/fts-backend-solr.c |  9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diffs (19 lines):

diff -r 776e2d96f6bb -r 29178cec0506 src/plugins/fts-solr/fts-backend-solr.c
--- a/src/plugins/fts-solr/fts-backend-solr.c	Tue Jun 22 22:41:55 2010 +0100
+++ b/src/plugins/fts-solr/fts-backend-solr.c	Tue Jun 22 22:46:11 2010 +0100
@@ -627,10 +627,11 @@
 		i_assert(!ctx->headers);
 	}
 
-	i_assert(!ctx->field_open);
-	ctx->field_open = TRUE;
-	ctx->headers = FALSE;
-	str_append(ctx->cmd, "<field name=\"body\">");
+	if (!ctx->field_open) {
+		ctx->field_open = TRUE;
+		ctx->headers = FALSE;
+		str_append(ctx->cmd, "<field name=\"body\">");
+	}
 	return TRUE;
 }
 


More information about the dovecot-cvs mailing list