Author: kpvdr
Date: 2009-04-21 08:34:13 -0400 (Tue, 21 Apr 2009)
New Revision: 3316
Modified:
store/trunk/cpp/lib/MessageStoreImpl.cpp
Log:
Fixed bug in rounding to nearest power of 2 for write cache size - values between 96 and
127 were omitted.
Modified: store/trunk/cpp/lib/MessageStoreImpl.cpp
===================================================================
--- store/trunk/cpp/lib/MessageStoreImpl.cpp 2009-04-20 19:56:43 UTC (rev 3315)
+++ store/trunk/cpp/lib/MessageStoreImpl.cpp 2009-04-21 12:34:13 UTC (rev 3316)
@@ -134,7 +134,7 @@
else if (p < 24) p = 16;
else if (p < 48) p = 32;
else if (p < 96) p = 64;
- else if (p > 128) p = 128;
+ else p = 128;
QPID_LOG(warning, "parameter " << paramName << "
(" << param << ") must be a power of 2 between 1 and 128; changing
this parameter to closest allowable value (" << p << ")");
}
}