directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kayyag...@apache.org
Subject svn commit: r810972 - in /directory/apacheds/branches/apacheds-schema/avl-partition/src/main/java/org/apache/directory/server/core/partition/avl: AvlIndex.java AvlMasterTable.java
Date Thu, 03 Sep 2009 14:36:13 GMT
Author: kayyagari
Date: Thu Sep  3 14:36:13 2009
New Revision: 810972

URL: http://svn.apache.org/viewvc?rev=810972&view=rev
Log:
o changed the master table counter to start from 0 (same as JdbmMasterTable)
o fixed add method of AvlIndex which is not adding to the reverse table

Modified:
    directory/apacheds/branches/apacheds-schema/avl-partition/src/main/java/org/apache/directory/server/core/partition/avl/AvlIndex.java
    directory/apacheds/branches/apacheds-schema/avl-partition/src/main/java/org/apache/directory/server/core/partition/avl/AvlMasterTable.java

Modified: directory/apacheds/branches/apacheds-schema/avl-partition/src/main/java/org/apache/directory/server/core/partition/avl/AvlIndex.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/apacheds-schema/avl-partition/src/main/java/org/apache/directory/server/core/partition/avl/AvlIndex.java?rev=810972&r1=810971&r2=810972&view=diff
==============================================================================
--- directory/apacheds/branches/apacheds-schema/avl-partition/src/main/java/org/apache/directory/server/core/partition/avl/AvlIndex.java
(original)
+++ directory/apacheds/branches/apacheds-schema/avl-partition/src/main/java/org/apache/directory/server/core/partition/avl/AvlIndex.java
Thu Sep  3 14:36:13 2009
@@ -122,6 +122,7 @@
     public void add( K attrVal, Long id ) throws Exception
     {
         forward.put( attrVal, id );
+        reverse.put( id, getNormalized( attrVal ) );
     }
 
 

Modified: directory/apacheds/branches/apacheds-schema/avl-partition/src/main/java/org/apache/directory/server/core/partition/avl/AvlMasterTable.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/apacheds-schema/avl-partition/src/main/java/org/apache/directory/server/core/partition/avl/AvlMasterTable.java?rev=810972&r1=810971&r2=810972&view=diff
==============================================================================
--- directory/apacheds/branches/apacheds-schema/avl-partition/src/main/java/org/apache/directory/server/core/partition/avl/AvlMasterTable.java
(original)
+++ directory/apacheds/branches/apacheds-schema/avl-partition/src/main/java/org/apache/directory/server/core/partition/avl/AvlMasterTable.java
Thu Sep  3 14:36:13 2009
@@ -37,7 +37,7 @@
 public class AvlMasterTable<E> extends AvlTable<Long, E> implements MasterTable<E>
 {
     private Properties props = new Properties();
-    private AtomicLong counter = new AtomicLong( 1 );
+    private AtomicLong counter = new AtomicLong( 0 );
     
     
     public AvlMasterTable( String name, Comparator<Long> keyComparator, Comparator<E>
valComparator, 



Mime
View raw message