directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1621902 - /directory/apacheds/trunk/mavibot-partition/src/main/java/org/apache/directory/server/core/partition/impl/btree/mavibot/MavibotPartition.java
Date Mon, 01 Sep 2014 23:50:47 GMT
Author: elecharny
Date: Mon Sep  1 23:50:47 2014
New Revision: 1621902

URL: http://svn.apache.org/r1621902
Log:
Inject the cache size into the Master table when creating it

Modified:
    directory/apacheds/trunk/mavibot-partition/src/main/java/org/apache/directory/server/core/partition/impl/btree/mavibot/MavibotPartition.java

Modified: directory/apacheds/trunk/mavibot-partition/src/main/java/org/apache/directory/server/core/partition/impl/btree/mavibot/MavibotPartition.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/mavibot-partition/src/main/java/org/apache/directory/server/core/partition/impl/btree/mavibot/MavibotPartition.java?rev=1621902&r1=1621901&r2=1621902&view=diff
==============================================================================
--- directory/apacheds/trunk/mavibot-partition/src/main/java/org/apache/directory/server/core/partition/impl/btree/mavibot/MavibotPartition.java
(original)
+++ directory/apacheds/trunk/mavibot-partition/src/main/java/org/apache/directory/server/core/partition/impl/btree/mavibot/MavibotPartition.java
Mon Sep  1 23:50:47 2014
@@ -160,7 +160,8 @@ public class MavibotPartition extends Ab
             // First, check if the file storing the data exists
 
             // Create the master table (the table containing all the entries)
-            master = new MavibotMasterTable( recordMan, schemaManager, "master", cacheSize
);
+            Cache masterTableCache = cacheService.getCache( suffixDn.getName() );
+            master = new MavibotMasterTable( recordMan, schemaManager, "master", masterTableCache.getCacheConfiguration().getMaxElementsInMemory()
);
 
             // get all index db files first
             File[] allIndexDbFiles = partitionDir.listFiles( DB_FILTER );



Mime
View raw message