directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kayyag...@apache.org
Subject svn commit: r796140 - /directory/apacheds/branches/ldif-partition/avl-partition/src/main/java/org/apache/directory/server/core/partition/avl/AvlStore.java
Date Tue, 21 Jul 2009 04:22:21 GMT
Author: kayyagari
Date: Tue Jul 21 04:22:21 2009
New Revision: 796140

URL: http://svn.apache.org/viewvc?rev=796140&view=rev
Log:
backporting fix for DIRSERVER-1376

Modified:
    directory/apacheds/branches/ldif-partition/avl-partition/src/main/java/org/apache/directory/server/core/partition/avl/AvlStore.java

Modified: directory/apacheds/branches/ldif-partition/avl-partition/src/main/java/org/apache/directory/server/core/partition/avl/AvlStore.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/ldif-partition/avl-partition/src/main/java/org/apache/directory/server/core/partition/avl/AvlStore.java?rev=796140&r1=796139&r2=796140&view=diff
==============================================================================
--- directory/apacheds/branches/ldif-partition/avl-partition/src/main/java/org/apache/directory/server/core/partition/avl/AvlStore.java
(original)
+++ directory/apacheds/branches/ldif-partition/avl-partition/src/main/java/org/apache/directory/server/core/partition/avl/AvlStore.java
Tue Jul 21 04:22:21 2009
@@ -200,6 +200,8 @@
             subLevelIdx.add( tempId, id );
             tempId = getParentId( tempId );
         }
+        
+        // making entry an ancestor/descendent of itself in sublevel index
         subLevelIdx.add( id, id );
         
         // Now work on the user defined userIndices
@@ -273,7 +275,7 @@
         updnIdx.drop( id );
         oneLevelIdx.drop( id );
 
-        if( parentId != 1 )// should not use getParentId() to compare, onelevel index drops
the 'id'
+        if( id != 1 )
         {
             subLevelIdx.drop( id );
         }



Mime
View raw message