Author: kpvdr
Date: 2010-08-12 15:58:56 -0400 (Thu, 12 Aug 2010)
New Revision: 4205
Modified:
store/trunk/cpp/lib/MessageStoreImpl.cpp
Log:
Fix for BZ620742 - "Qpid starts with faulty value --num-jfiles 1".
Modified: store/trunk/cpp/lib/MessageStoreImpl.cpp
===================================================================
--- store/trunk/cpp/lib/MessageStoreImpl.cpp 2010-08-12 14:57:55 UTC (rev 4204)
+++ store/trunk/cpp/lib/MessageStoreImpl.cpp 2010-08-12 19:58:56 UTC (rev 4205)
@@ -488,11 +488,11 @@
value = args.get("qpid.file_count");
if (value.get() != 0 && !value->empty() &&
value->convertsTo<int>())
- localFileCount = (u_int16_t) value->get<int>();
+ localFileCount = chkJrnlNumFilesParam((u_int16_t) value->get<int>(),
"qpid.file_count");
value = args.get("qpid.file_size");
if (value.get() != 0 && !value->empty() &&
value->convertsTo<int>())
- localFileSizeSblks = (u_int32_t) value->get<int>() *
JRNL_RMGR_PAGE_SIZE;
+ localFileSizeSblks = chkJrnlFileSizeParam((u_int32_t) value->get<int>(),
"qpid.file_size") * JRNL_RMGR_PAGE_SIZE;
if (queue.getName().size() == 0)
{
Show replies by date