directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akaras...@apache.org
Subject svn commit: r442058 - in /directory/branches/apacheds/optimization/core/src: main/java/org/apache/directory/server/core/partition/impl/btree/jdbm/ test/java/org/apache/directory/server/core/partition/impl/btree/jdbm/
Date Mon, 11 Sep 2006 01:26:25 GMT
Author: akarasulu
Date: Sun Sep 10 18:26:24 2006
New Revision: 442058

URL: http://svn.apache.org/viewvc?view=rev&rev=442058
Log:
committing minor touchups on constants

Removed:
    directory/branches/apacheds/optimization/core/src/test/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmTableTest.java
Modified:
    directory/branches/apacheds/optimization/core/src/main/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmIndex.java
    directory/branches/apacheds/optimization/core/src/main/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmTable.java

Modified: directory/branches/apacheds/optimization/core/src/main/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmIndex.java
URL: http://svn.apache.org/viewvc/directory/branches/apacheds/optimization/core/src/main/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmIndex.java?view=diff&rev=442058&r1=442057&r2=442058
==============================================================================
--- directory/branches/apacheds/optimization/core/src/main/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmIndex.java
(original)
+++ directory/branches/apacheds/optimization/core/src/main/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmIndex.java
Sun Sep 10 18:26:24 2006
@@ -38,6 +38,7 @@
 import org.apache.directory.server.core.ServerUtils;
 import org.apache.directory.server.core.partition.impl.btree.Index;
 import org.apache.directory.server.core.partition.impl.btree.IndexComparator;
+import org.apache.directory.server.core.partition.impl.btree.IndexConfiguration;
 import org.apache.directory.server.core.partition.impl.btree.IndexEnumeration;
 import org.apache.directory.server.core.schema.SerializableComparator;
 import org.apache.directory.shared.ldap.schema.AttributeType;
@@ -71,7 +72,7 @@
      */
     private SynchronizedLRUMap keyCache = null;
     
-    private int numDupLimit = 100;
+    private int numDupLimit = IndexConfiguration.DEFAULT_DUPLICATE_LIMIT;
 
 
     // ------------------------------------------------------------------------
@@ -98,6 +99,7 @@
 
     public JdbmIndex( AttributeType attribute, File wkDirPath, int cacheSize, int numDupLimit
) throws NamingException
     {
+        this.numDupLimit = numDupLimit;
         File file = new File( wkDirPath.getPath() + File.separator + attribute.getName()
);
         this.attribute = attribute;
         keyCache = new SynchronizedLRUMap( cacheSize );

Modified: directory/branches/apacheds/optimization/core/src/main/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmTable.java
URL: http://svn.apache.org/viewvc/directory/branches/apacheds/optimization/core/src/main/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmTable.java?view=diff&rev=442058&r1=442057&r2=442058
==============================================================================
--- directory/branches/apacheds/optimization/core/src/main/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmTable.java
(original)
+++ directory/branches/apacheds/optimization/core/src/main/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmTable.java
Sun Sep 10 18:26:24 2006
@@ -37,6 +37,7 @@
 import jdbm.helper.TupleBrowser;
 
 import org.apache.commons.collections.iterators.ArrayIterator;
+import org.apache.directory.server.core.partition.impl.btree.IndexConfiguration;
 import org.apache.directory.server.core.partition.impl.btree.KeyOnlyComparator;
 import org.apache.directory.server.core.partition.impl.btree.NoDupsEnumeration;
 import org.apache.directory.server.core.partition.impl.btree.Table;
@@ -79,7 +80,7 @@
     /** */
     private TupleRenderer renderer;
 
-    private int numDupLimit = 100;
+    private int numDupLimit = IndexConfiguration.DEFAULT_DUPLICATE_LIMIT;
 
     private Map duplicateBtrees = new HashMap();
     



Mime
View raw message