directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r787610 - /directory/apacheds/trunk/jdbm-store/src/main/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmIndex.java
Date Tue, 23 Jun 2009 09:49:03 GMT
Author: elecharny
Date: Tue Jun 23 09:49:03 2009
New Revision: 787610

URL: http://svn.apache.org/viewvc?rev=787610&view=rev
Log:
Added comments in the drop( Long entryId ) method 

Modified:
    directory/apacheds/trunk/jdbm-store/src/main/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmIndex.java

Modified: directory/apacheds/trunk/jdbm-store/src/main/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmIndex.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/jdbm-store/src/main/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmIndex.java?rev=787610&r1=787609&r2=787610&view=diff
==============================================================================
--- directory/apacheds/trunk/jdbm-store/src/main/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmIndex.java
(original)
+++ directory/apacheds/trunk/jdbm-store/src/main/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmIndex.java
Tue Jun 23 09:49:03 2009
@@ -475,13 +475,17 @@
      */
     public void drop( Long entryId ) throws Exception
     {
+        // Build a cursor to iterate on all the keys referencing
+        // this entryId
         Cursor<Tuple<Long,K>> values = reverse.cursor( entryId );
-        
+
         while ( values.next() )
         {
+            // Remove the Key -> entryId from the index
             forward.remove( values.get().getValue(), entryId );
         }
 
+        // Remove the id -> key from the reverse index
         reverse.remove( entryId );
     }
 



Mime
View raw message