activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rajdav...@apache.org
Subject svn commit: r673143 - /activemq/trunk/activemq-core/src/main/java/org/apache/activemq/kaha/impl/index/hash/HashIndex.java
Date Tue, 01 Jul 2008 17:13:52 GMT
Author: rajdavies
Date: Tue Jul  1 10:13:52 2008
New Revision: 673143

URL: http://svn.apache.org/viewvc?rev=673143&view=rev
Log:
Fix for https://issues.apache.org/activemq/browse/AMQ-1834

Modified:
    activemq/trunk/activemq-core/src/main/java/org/apache/activemq/kaha/impl/index/hash/HashIndex.java

Modified: activemq/trunk/activemq-core/src/main/java/org/apache/activemq/kaha/impl/index/hash/HashIndex.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/kaha/impl/index/hash/HashIndex.java?rev=673143&r1=673142&r2=673143&view=diff
==============================================================================
--- activemq/trunk/activemq-core/src/main/java/org/apache/activemq/kaha/impl/index/hash/HashIndex.java
(original)
+++ activemq/trunk/activemq-core/src/main/java/org/apache/activemq/kaha/impl/index/hash/HashIndex.java
Tue Jul  1 10:13:52 2008
@@ -542,6 +542,7 @@
                 while (capacity < newCapacity) {
                     capacity <<= 1;
                 }
+                newCapacity=capacity;
                 if (newCapacity != numberOfBins) {
                     LOG.info("Resize hash bins " + this.name + " from " + numberOfBins +
" to " + newCapacity);
                     



Mime
View raw message