git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@673143 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Davies 2008-07-01 17:13:52 +00:00
parent db2451cfd9
commit bdbced30d8
1 changed files with 1 additions and 0 deletions

View File

@ -542,6 +542,7 @@ public class HashIndex implements Index, HashIndexMBean {
while (capacity < newCapacity) { while (capacity < newCapacity) {
capacity <<= 1; capacity <<= 1;
} }
newCapacity=capacity;
if (newCapacity != numberOfBins) { if (newCapacity != numberOfBins) {
LOG.info("Resize hash bins " + this.name + " from " + numberOfBins + " to " + newCapacity); LOG.info("Resize hash bins " + this.name + " from " + numberOfBins + " to " + newCapacity);