From: Timo Sirainen Date: Tue, 22 Jun 2010 21:46:11 +0000 (+0100) Subject: fts-solr: Previous change wasn't complete. X-Git-Tag: 2.0.rc1~101 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a7af27522004d1d520072c80883aa2a5c440ea6a;p=thirdparty%2Fdovecot%2Fcore.git fts-solr: Previous change wasn't complete. --HG-- branch : HEAD --- diff --git a/src/plugins/fts-solr/fts-backend-solr.c b/src/plugins/fts-solr/fts-backend-solr.c index 432c927e52..38ac4d015c 100644 --- a/src/plugins/fts-solr/fts-backend-solr.c +++ b/src/plugins/fts-solr/fts-backend-solr.c @@ -627,10 +627,11 @@ fts_backend_solr_build_body_begin(struct fts_backend_build_context *_ctx, i_assert(!ctx->headers); } - i_assert(!ctx->field_open); - ctx->field_open = TRUE; - ctx->headers = FALSE; - str_append(ctx->cmd, ""); + if (!ctx->field_open) { + ctx->field_open = TRUE; + ctx->headers = FALSE; + str_append(ctx->cmd, ""); + } return TRUE; }