manifoldcf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kwri...@apache.org
Subject svn commit: r1853008 - in /manifoldcf/trunk: CHANGES.txt connectors/jdbc/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/jdbc/JDBCConnector.java
Date Tue, 05 Feb 2019 14:21:48 GMT
Author: kwright
Date: Tue Feb  5 14:21:47 2019
New Revision: 1853008

URL: http://svn.apache.org/viewvc?rev=1853008&view=rev
Log:
Fix for CONNECTORS-1579.

Modified:
    manifoldcf/trunk/CHANGES.txt
    manifoldcf/trunk/connectors/jdbc/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/jdbc/JDBCConnector.java

Modified: manifoldcf/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/manifoldcf/trunk/CHANGES.txt?rev=1853008&r1=1853007&r2=1853008&view=diff
==============================================================================
--- manifoldcf/trunk/CHANGES.txt (original)
+++ manifoldcf/trunk/CHANGES.txt Tue Feb  5 14:21:47 2019
@@ -3,6 +3,10 @@ $Id$
 
 ======================= 2.13-dev =====================
 
+CONNECTORS-1579: Fix for JDBC connector's incorrect tracking of rejected
+documents.
+(Donald Van den Driessche, Karl Wright)
+
 CONNECTORS-1535: Modify documentum server script on Linux because otherwise
 dfc.properties can't be found.
 (James Thomas)

Modified: manifoldcf/trunk/connectors/jdbc/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/jdbc/JDBCConnector.java
URL: http://svn.apache.org/viewvc/manifoldcf/trunk/connectors/jdbc/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/jdbc/JDBCConnector.java?rev=1853008&r1=1853007&r2=1853008&view=diff
==============================================================================
--- manifoldcf/trunk/connectors/jdbc/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/jdbc/JDBCConnector.java
(original)
+++ manifoldcf/trunk/connectors/jdbc/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/jdbc/JDBCConnector.java
Tue Feb  5 14:21:47 2019
@@ -698,6 +698,11 @@ public class JDBCConnector extends org.a
             // This document was marked as "not scan only", so we expect to find it.
             if (Logging.connectors.isDebugEnabled())
               Logging.connectors.debug("JDBC: Document data result found for '"+id+"'");
+            
+            // We will determine the disposition of the document here, so remove this id
from the map in order that we know what we still
+            // need to delete when all done.
+            map.remove(id);
+
             o = row.getValue(JDBCConstants.urlReturnColumnName);
             if (o == null)
             {
@@ -743,9 +748,6 @@ public class JDBCConnector extends org.a
               continue;
             }
             
-            // We will ingest something, so remove this id from the map in order that we
know what we still
-            // need to delete when all done.
-            map.remove(id);
             String contentType;
             o = row.getValue(JDBCConstants.contentTypeReturnColumnName);
             if (o != null)



Mime
View raw message