dovecot-2.0: solr: Error handling fix when Solr didn't return 200.

dovecot at dovecot.org dovecot at dovecot.org
Mon Apr 5 08:01:52 EEST 2010


details:   http://hg.dovecot.org/dovecot-2.0/rev/1786d44bf90f
changeset: 11064:1786d44bf90f
user:      Timo Sirainen <tss at iki.fi>
date:      Mon Apr 05 08:01:48 2010 +0300
description:
solr: Error handling fix when Solr didn't return 200.

diffstat:

 src/plugins/fts-solr/solr-connection.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r dbc864c0cff7 -r 1786d44bf90f src/plugins/fts-solr/solr-connection.c
--- a/src/plugins/fts-solr/solr-connection.c	Mon Apr 05 07:54:55 2010 +0300
+++ b/src/plugins/fts-solr/solr-connection.c	Mon Apr 05 08:01:48 2010 +0300
@@ -405,7 +405,7 @@
 	curl_easy_getinfo(conn->curl, CURLINFO_RESPONSE_CODE, &httpret);
 	if (httpret != 200) {
 		i_error("fts_solr: Lookup failed: %s", conn->http_failure);
-		ret = -1;
+		return -1;
 	}
 	return solr_xml_parse(conn, NULL, 0, TRUE);
 }


More information about the dovecot-cvs mailing list