manifoldcf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kwri...@apache.org
Subject svn commit: r1655689 - /manifoldcf/branches/dev_1x/framework/agents/src/main/java/org/apache/manifoldcf/agents/incrementalingest/IncrementalIngester.java
Date Thu, 29 Jan 2015 14:51:06 GMT
Author: kwright
Date: Thu Jan 29 14:51:06 2015
New Revision: 1655689

URL: http://svn.apache.org/r1655689
Log:
Another part of case 1 fix for CONNECTORS-1153.

Modified:
    manifoldcf/branches/dev_1x/framework/agents/src/main/java/org/apache/manifoldcf/agents/incrementalingest/IncrementalIngester.java

Modified: manifoldcf/branches/dev_1x/framework/agents/src/main/java/org/apache/manifoldcf/agents/incrementalingest/IncrementalIngester.java
URL: http://svn.apache.org/viewvc/manifoldcf/branches/dev_1x/framework/agents/src/main/java/org/apache/manifoldcf/agents/incrementalingest/IncrementalIngester.java?rev=1655689&r1=1655688&r2=1655689&view=diff
==============================================================================
--- manifoldcf/branches/dev_1x/framework/agents/src/main/java/org/apache/manifoldcf/agents/incrementalingest/IncrementalIngester.java
(original)
+++ manifoldcf/branches/dev_1x/framework/agents/src/main/java/org/apache/manifoldcf/agents/incrementalingest/IncrementalIngester.java
Thu Jan 29 14:51:06 2015
@@ -575,7 +575,11 @@ public class IncrementalIngester extends
       
       // Everything matches so far.  Next step is to compute a transformation path an corresponding
version string.
       String newTransformationVersion = computePackedTransformationVersion(pipelineSpecificationWithVersions,stage);
-      if (!pipelineSpecificationWithVersions.getOutputTransformationVersionString(i).equals(newTransformationVersion))
+      String oldTransformationVersion = pipelineSpecificationWithVersions.getOutputTransformationVersionString(i);
+      // For backwards compatibility to versions prior to 1.7
+      if (oldTransformationVersion.length() == 0)
+        oldTransformationVersion = "0+0!";
+      if (oldTransformationVersion.equals(newTransformationVersion))
         return true;
     }
     // Everything matches, so no reindexing is needed.



Mime
View raw message