jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From un...@apache.org
Subject svn commit: r1445232 - /jackrabbit/branches/2.6/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/ConsistencyCheck.java
Date Tue, 12 Feb 2013 16:14:47 GMT
Author: unico
Date: Tue Feb 12 16:14:47 2013
New Revision: 1445232

URL: http://svn.apache.org/r1445232
Log:
JCR-3516 uuid should not be added to the map of node ids that are in the repository when it
is only in the index

Modified:
    jackrabbit/branches/2.6/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/ConsistencyCheck.java

Modified: jackrabbit/branches/2.6/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/ConsistencyCheck.java
URL: http://svn.apache.org/viewvc/jackrabbit/branches/2.6/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/ConsistencyCheck.java?rev=1445232&r1=1445231&r2=1445232&view=diff
==============================================================================
--- jackrabbit/branches/2.6/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/ConsistencyCheck.java
(original)
+++ jackrabbit/branches/2.6/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/ConsistencyCheck.java
Tue Feb 12 16:14:47 2013
@@ -281,9 +281,9 @@ public class ConsistencyCheck {
                 }
                 Document d = reader.document(i, FieldSelectors.UUID);
                 NodeId id = new NodeId(d.get(FieldNames.UUID));
-                Boolean alreadyIndexed = nodeIds.put(id, Boolean.TRUE);
-                boolean nodeExists = alreadyIndexed != null;
+                boolean nodeExists = nodeIds.containsKey(id);
                 if (nodeExists) {
+                    Boolean alreadyIndexed = nodeIds.put(id, Boolean.TRUE);
                     if (alreadyIndexed) {
                         multipleEntries.add(id);
                     }



Mime
View raw message