directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1307182 - /directory/apacheds/branches/index-work/xdbm-partition/src/main/java/org/apache/directory/server/xdbm/search/impl/OneLevelScopeEvaluator.java
Date Fri, 30 Mar 2012 00:38:45 GMT
Author: elecharny
Date: Fri Mar 30 00:38:45 2012
New Revision: 1307182

URL: http://svn.apache.org/viewvc?rev=1307182&view=rev
Log:
Used the rdnIdx instead of the oneLevelIdx in the evaluateId( IndexEntry<?, ID> ) method

Modified:
    directory/apacheds/branches/index-work/xdbm-partition/src/main/java/org/apache/directory/server/xdbm/search/impl/OneLevelScopeEvaluator.java

Modified: directory/apacheds/branches/index-work/xdbm-partition/src/main/java/org/apache/directory/server/xdbm/search/impl/OneLevelScopeEvaluator.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/index-work/xdbm-partition/src/main/java/org/apache/directory/server/xdbm/search/impl/OneLevelScopeEvaluator.java?rev=1307182&r1=1307181&r2=1307182&view=diff
==============================================================================
--- directory/apacheds/branches/index-work/xdbm-partition/src/main/java/org/apache/directory/server/xdbm/search/impl/OneLevelScopeEvaluator.java
(original)
+++ directory/apacheds/branches/index-work/xdbm-partition/src/main/java/org/apache/directory/server/xdbm/search/impl/OneLevelScopeEvaluator.java
Fri Mar 30 00:38:45 2012
@@ -154,7 +154,8 @@ public class OneLevelScopeEvaluator<E, I
      */
     public boolean evaluate( IndexEntry<?, ID> candidate ) throws Exception
     {
-        boolean isChild = db.getOneLevelIndex().forward( baseId, candidate.getId() );
+        ParentIdAndRdn<ID> parent = db.getRdnIndex().reverseLookup( candidate.getId()
);
+        boolean isChild = parent.getParentId().equals( baseId );
 
         /*
          * The candidate id could be any entry in the db.  If search



Mime
View raw message