directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r811862 - in /directory/apacheds/branches/apacheds-schema/avl-partition/src/main/java/org/apache/directory/server/core/partition/avl: AvlPartition.java AvlStore.java
Date Sun, 06 Sep 2009 19:08:42 GMT
Author: elecharny
Date: Sun Sep  6 19:08:42 2009
New Revision: 811862

URL: http://svn.apache.org/viewvc?rev=811862&view=rev
Log:
Added a addContextEntry() methods to be able to inject the contextEntry in the store
Fixed a DN normalized value retrieval

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

Modified: directory/apacheds/branches/apacheds-schema/avl-partition/src/main/java/org/apache/directory/server/core/partition/avl/AvlPartition.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/apacheds-schema/avl-partition/src/main/java/org/apache/directory/server/core/partition/avl/AvlPartition.java?rev=811862&r1=811861&r2=811862&view=diff
==============================================================================
--- directory/apacheds/branches/apacheds-schema/avl-partition/src/main/java/org/apache/directory/server/core/partition/avl/AvlPartition.java
(original)
+++ directory/apacheds/branches/apacheds-schema/avl-partition/src/main/java/org/apache/directory/server/core/partition/avl/AvlPartition.java
Sun Sep  6 19:08:42 2009
@@ -402,6 +402,12 @@
     }
 
 
+    public final void addContextEntry( ServerEntry contextEntry ) throws Exception
+    {
+        store.add( contextEntry );
+    }
+
+
     public final ClonedServerEntry lookup( Long id ) throws Exception
     {
         return new ClonedServerEntry( store.lookup( id ) );

Modified: directory/apacheds/branches/apacheds-schema/avl-partition/src/main/java/org/apache/directory/server/core/partition/avl/AvlStore.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/apacheds-schema/avl-partition/src/main/java/org/apache/directory/server/core/partition/avl/AvlStore.java?rev=811862&r1=811861&r2=811862&view=diff
==============================================================================
--- directory/apacheds/branches/apacheds-schema/avl-partition/src/main/java/org/apache/directory/server/core/partition/avl/AvlStore.java
(original)
+++ directory/apacheds/branches/apacheds-schema/avl-partition/src/main/java/org/apache/directory/server/core/partition/avl/AvlStore.java
Sun Sep  6 19:08:42 2009
@@ -39,7 +39,6 @@
 import org.apache.directory.server.core.entry.ServerEntry;
 import org.apache.directory.server.core.entry.ServerStringValue;
 import org.apache.directory.server.core.partition.impl.btree.LongComparator;
-import org.apache.directory.server.core.partition.impl.btree.gui.IndexDialog;
 import org.apache.directory.server.xdbm.Index;
 import org.apache.directory.server.xdbm.IndexCursor;
 import org.apache.directory.server.xdbm.IndexEntry;
@@ -171,7 +170,7 @@
         {
             parentDn = ( LdapDN ) normName.clone();
             parentDn.remove( parentDn.size() - 1 );
-            parentId = getEntryId( parentDn.toString() );
+            parentId = getEntryId( parentDn.getNormName() );
         }
 
         // don't keep going if we cannot find the parent Id



Mime
View raw message