directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r348147 - /directory/apacheds/trunk/core/src/main/java/org/apache/ldap/server/partition/impl/btree/jdbm/JdbmIndex.java
Date Tue, 22 Nov 2005 10:44:06 GMT
Author: elecharny
Date: Tue Nov 22 02:44:02 2005
New Revision: 348147

URL: http://svn.apache.org/viewcvs?rev=348147&view=rev
Log:
Changed due to the renamming of LRUMap

Modified:
    directory/apacheds/trunk/core/src/main/java/org/apache/ldap/server/partition/impl/btree/jdbm/JdbmIndex.java

Modified: directory/apacheds/trunk/core/src/main/java/org/apache/ldap/server/partition/impl/btree/jdbm/JdbmIndex.java
URL: http://svn.apache.org/viewcvs/directory/apacheds/trunk/core/src/main/java/org/apache/ldap/server/partition/impl/btree/jdbm/JdbmIndex.java?rev=348147&r1=348146&r2=348147&view=diff
==============================================================================
--- directory/apacheds/trunk/core/src/main/java/org/apache/ldap/server/partition/impl/btree/jdbm/JdbmIndex.java
(original)
+++ directory/apacheds/trunk/core/src/main/java/org/apache/ldap/server/partition/impl/btree/jdbm/JdbmIndex.java
Tue Nov 22 02:44:02 2005
@@ -32,7 +32,7 @@
 import jdbm.recman.CacheRecordManager;
 
 import org.apache.ldap.common.schema.AttributeType;
-import org.apache.ldap.common.util.LRUMap;
+import org.apache.ldap.common.util.SynchronizedLRUMap;
 import org.apache.ldap.server.partition.impl.btree.Index;
 import org.apache.ldap.server.partition.impl.btree.IndexComparator;
 import org.apache.ldap.server.partition.impl.btree.IndexEnumeration;
@@ -65,7 +65,7 @@
      * @todo I don't think the keyCache is required anymore since the normalizer
      * will cache values for us.
      */
-    private LRUMap keyCache = null;
+    private SynchronizedLRUMap keyCache = null;
 
 
     // ------------------------------------------------------------------------
@@ -86,7 +86,7 @@
         throws NamingException
     {
         this.attribute = attribute;
-        keyCache = new LRUMap( 1000 );
+        keyCache = new SynchronizedLRUMap( 1000 );
         this.recMan = recMan;
         initTables();
     }
@@ -98,7 +98,7 @@
         File file = new File( wkDirPath.getPath() + File.separator 
             + attribute.getName() );
         this.attribute = attribute;
-        keyCache = new LRUMap( 1000 );
+        keyCache = new SynchronizedLRUMap( 1000 );
 
         try 
         {



Mime
View raw message