jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ju...@apache.org
Subject svn commit: r628268 - /jackrabbit/branches/1.4/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/DocNumberCache.java
Date Sat, 16 Feb 2008 11:46:50 GMT
Author: jukka
Date: Sat Feb 16 03:46:47 2008
New Revision: 628268

URL: http://svn.apache.org/viewvc?rev=628268&view=rev
Log:
1.4: Merged revision 620823 (JCR-1376)

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

Modified: jackrabbit/branches/1.4/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/DocNumberCache.java
URL: http://svn.apache.org/viewvc/jackrabbit/branches/1.4/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/DocNumberCache.java?rev=628268&r1=628267&r2=628268&view=diff
==============================================================================
--- jackrabbit/branches/1.4/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/DocNumberCache.java
(original)
+++ jackrabbit/branches/1.4/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/DocNumberCache.java
Sat Feb 16 03:46:47 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