directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akaras...@apache.org
Subject svn commit: r902608 - /directory/apacheds/trunk/jdbm-store/src/main/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmTable.java
Date Sun, 24 Jan 2010 17:32:55 GMT
Author: akarasulu
Date: Sun Jan 24 17:32:55 2010
New Revision: 902608

URL: http://svn.apache.org/viewvc?rev=902608&view=rev
Log:
deleting the secondary BTree used for values does not free blocks as one would expect but
this is the correct way to do it

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

Modified: directory/apacheds/trunk/jdbm-store/src/main/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmTable.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/jdbm-store/src/main/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmTable.java?rev=902608&r1=902607&r2=902608&view=diff
==============================================================================
--- directory/apacheds/trunk/jdbm-store/src/main/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmTable.java
(original)
+++ directory/apacheds/trunk/jdbm-store/src/main/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmTable.java
Sun Jan 24 17:32:55 2010
@@ -851,7 +851,9 @@
                 {
                     LOG.debug( "<--- Remove BTree {} = {}", name, key );
                 }
-                
+
+                recMan.delete( tree.getRecid() );
+                duplicateBtrees.remove( tree.getRecid() );
                 return;
             }
             else



Mime
View raw message