jackrabbit-commits mailing list archives

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

URL: http://svn.apache.org/r1445229
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/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/ConsistencyCheck.java

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/ConsistencyCheck.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/ConsistencyCheck.java?rev=1445229&r1=1445228&r2=1445229&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/ConsistencyCheck.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/ConsistencyCheck.java
Tue Feb 12 16:12:10 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