You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by er...@apache.org on 2005/11/24 14:23:23 UTC
svn commit: r348728 -
/directory/sandbox/ersiner/apacheds-with-storedprocs/core/src/main/java/org/apache/ldap/server/partition/impl/btree/jdbm/JdbmIndex.java
Author: ersiner
Date: Thu Nov 24 05:23:17 2005
New Revision: 348728
URL: http://svn.apache.org/viewcvs?rev=348728&view=rev
Log:
Replaced LRUMap with SyncronizedLRUMap as Emmanuel did in the original branch.
Modified:
directory/sandbox/ersiner/apacheds-with-storedprocs/core/src/main/java/org/apache/ldap/server/partition/impl/btree/jdbm/JdbmIndex.java
Modified: directory/sandbox/ersiner/apacheds-with-storedprocs/core/src/main/java/org/apache/ldap/server/partition/impl/btree/jdbm/JdbmIndex.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/ersiner/apacheds-with-storedprocs/core/src/main/java/org/apache/ldap/server/partition/impl/btree/jdbm/JdbmIndex.java?rev=348728&r1=348727&r2=348728&view=diff
==============================================================================
--- directory/sandbox/ersiner/apacheds-with-storedprocs/core/src/main/java/org/apache/ldap/server/partition/impl/btree/jdbm/JdbmIndex.java (original)
+++ directory/sandbox/ersiner/apacheds-with-storedprocs/core/src/main/java/org/apache/ldap/server/partition/impl/btree/jdbm/JdbmIndex.java Thu Nov 24 05:23:17 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
{