manifoldcf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kwri...@apache.org
Subject svn commit: r1441250 - /manifoldcf/trunk/connectors/elasticsearch/connector/src/main/java/org/apache/manifoldcf/agents/output/elasticsearch/ElasticSearchConnection.java
Date Thu, 31 Jan 2013 23:06:04 GMT
Author: kwright
Date: Thu Jan 31 23:06:04 2013
New Revision: 1441250

URL: http://svn.apache.org/viewvc?rev=1441250&view=rev
Log:
Fix ElasticSearch connector so that it accepts 201 codes as well as 200 codes to mean 'success'

Modified:
    manifoldcf/trunk/connectors/elasticsearch/connector/src/main/java/org/apache/manifoldcf/agents/output/elasticsearch/ElasticSearchConnection.java

Modified: manifoldcf/trunk/connectors/elasticsearch/connector/src/main/java/org/apache/manifoldcf/agents/output/elasticsearch/ElasticSearchConnection.java
URL: http://svn.apache.org/viewvc/manifoldcf/trunk/connectors/elasticsearch/connector/src/main/java/org/apache/manifoldcf/agents/output/elasticsearch/ElasticSearchConnection.java?rev=1441250&r1=1441249&r2=1441250&view=diff
==============================================================================
--- manifoldcf/trunk/connectors/elasticsearch/connector/src/main/java/org/apache/manifoldcf/agents/output/elasticsearch/ElasticSearchConnection.java
(original)
+++ manifoldcf/trunk/connectors/elasticsearch/connector/src/main/java/org/apache/manifoldcf/agents/output/elasticsearch/ElasticSearchConnection.java
Thu Jan 31 23:06:04 2013
@@ -232,7 +232,7 @@ public class ElasticSearchConnection
   private boolean handleResultCode(int code, String response)
     throws ManifoldCFException, ServiceInterruption
   {
-    if (code == 200)
+    if (code == 200 || code == 201)
     {
       setResult(Result.OK, null);
       return true;



Mime
View raw message