jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From thom...@apache.org
Subject svn commit: r1412513 - /jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/index/property/PropertyIndex.java
Date Thu, 22 Nov 2012 11:59:40 GMT
Author: thomasm
Date: Thu Nov 22 11:59:39 2012
New Revision: 1412513

URL: http://svn.apache.org/viewvc?rev=1412513&view=rev
Log:
JCR-3460 PropertyIndex uses TraversingCursor but should not

Modified:
    jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/index/property/PropertyIndex.java

Modified: jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/index/property/PropertyIndex.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/index/property/PropertyIndex.java?rev=1412513&r1=1412512&r2=1412513&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/index/property/PropertyIndex.java
(original)
+++ jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/index/property/PropertyIndex.java
Thu Nov 22 11:59:39 2012
@@ -139,11 +139,10 @@ public class PropertyIndex implements Qu
             }
         }
 
-        if (paths != null) {
-            return Cursors.newPathCursor(paths);
-        } else {
-            return Cursors.newTraversingCursor(filter, root);
+        if (paths == null) {
+            throw new IllegalStateException("Property index is used even when no index is
available for filter " + filter);
         }
+        return Cursors.newPathCursor(paths);
     }
 
     @Override



Mime
View raw message