You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by el...@apache.org on 2009/06/23 11:49:03 UTC

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

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 );
     }