jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mreut...@apache.org
Subject svn commit: r220279 - /incubator/jackrabbit/trunk/core/src/java/org/apache/jackrabbit/core/query/lucene/ConsistencyCheck.java
Date Fri, 22 Jul 2005 09:27:04 GMT
Author: mreutegg
Date: Fri Jul 22 02:27:03 2005
New Revision: 220279

URL: http://svn.apache.org/viewcvs?rev=220279&view=rev
Log:
JCR-160: Query index not in sync with workspace
- MissingAncestor.repair() fails with exception if one of the missing ancestors is the root
node itself.

Modified:
    incubator/jackrabbit/trunk/core/src/java/org/apache/jackrabbit/core/query/lucene/ConsistencyCheck.java

Modified: incubator/jackrabbit/trunk/core/src/java/org/apache/jackrabbit/core/query/lucene/ConsistencyCheck.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/core/src/java/org/apache/jackrabbit/core/query/lucene/ConsistencyCheck.java?rev=220279&r1=220278&r2=220279&view=diff
==============================================================================
--- incubator/jackrabbit/trunk/core/src/java/org/apache/jackrabbit/core/query/lucene/ConsistencyCheck.java
(original)
+++ incubator/jackrabbit/trunk/core/src/java/org/apache/jackrabbit/core/query/lucene/ConsistencyCheck.java
Fri Jul 22 02:27:03 2005
@@ -254,7 +254,7 @@
          */
         public void repair() throws IOException {
             String pUUID = parentUUID;
-            while (!documents.containsKey(pUUID)) {
+            while (pUUID != null && !documents.containsKey(pUUID)) {
                 try {
                     NodeState n = (NodeState) stateMgr.getItemState(new NodeId(pUUID));
                     log.info("Reparing missing node " + getPath(n));



Mime
View raw message