jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mreut...@apache.org
Subject svn commit: r620823 - /jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/DocNumberCache.java
Date Tue, 12 Feb 2008 15:10:18 GMT
Author: mreutegg
Date: Tue Feb 12 07:10:15 2008
New Revision: 620823

URL: http://svn.apache.org/viewvc?rev=620823&view=rev
Log:
JCR-1376: SearchIndex parameter cacheSize is ignored

Modified:
    jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/DocNumberCache.java

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/DocNumberCache.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/DocNumberCache.java?rev=620823&r1=620822&r2=620823&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/DocNumberCache.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/DocNumberCache.java
Tue Feb 12 07:10:15 2008
@@ -72,7 +72,7 @@
      * @param size the cache limit.
      */
     DocNumberCache(int size) {
-        size = size % CACHE_SEGMENTS;
+        size = size / CACHE_SEGMENTS;
         if (size < 0x40) {
             // minimum size is 0x40 * 0x10 = 1024
             size = 0x40;



Mime
View raw message