[asterisk-scf-commits] asterisk-scf/release/ice-util-cpp.git branch "master" updated.

Commits to the Asterisk SCF project code repositories asterisk-scf-commits at lists.digium.com
Wed Oct 5 14:30:16 CDT 2011


branch "master" has been updated
       via  c94539bd3bea014b7c2cc470526ed3a6610ee365 (commit)
      from  ed89284be4fdd448088f70299a5b1f518d734c73 (commit)

Summary of changes:
 src/Component/Component.cpp |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)


- Log -----------------------------------------------------------------
commit c94539bd3bea014b7c2cc470526ed3a6610ee365
Author: Brent Eagles <beagles at digium.com>
Date:   Wed Oct 5 16:59:31 2011 -0230

    Fix verifyProperties() to check for properties relative to the
    backplane and service adapter.

diff --git a/src/Component/Component.cpp b/src/Component/Component.cpp
index c9a0c17..70866e1 100644
--- a/src/Component/Component.cpp
+++ b/src/Component/Component.cpp
@@ -819,21 +819,21 @@ void Component::verifyProperties()
     string strDefaultSize = boost::lexical_cast<std::string>(defaultSize);
 
     Ice::Int defaultPoolSize = mCommunicator->getProperties()->getPropertyAsIntWithDefault("Ice.ThreadPool.Server.Size", 0);
-    if (mCommunicator->getProperties()->getPropertyAsIntWithDefault(mName + ".ThreadPool.Size", 0) < defaultSize)
+    if (mCommunicator->getProperties()->getPropertyAsIntWithDefault(mServiceAdapterName + ".ThreadPool.Size", 0) < defaultSize)
     {
         if (defaultPoolSize < defaultSize)
         {
-            mLogger(Info) << "Configured thread pool size for " << mName + " is too small, defaulting to " << strDefaultSize;
-            mCommunicator->getProperties()->setProperty(mName + ".ThreadPool.Size", strDefaultSize);
+            mLogger(Info) << "Configured thread pool size for " << mServiceAdapterName + " is too small, defaulting to " << strDefaultSize;
+            mCommunicator->getProperties()->setProperty(mServiceAdapterName + ".ThreadPool.Size", strDefaultSize);
         }
     }
 
-    if (mCommunicator->getProperties()->getPropertyAsIntWithDefault(mName + ".ThreadPool.Size", 0) < defaultSize)
+    if (mCommunicator->getProperties()->getPropertyAsIntWithDefault(mBackplaneAdapterName + ".ThreadPool.Size", 0) < defaultSize)
     {
         if (defaultPoolSize < defaultSize)
         {
-            mLogger(Info) << "Configured Internal thread pool size for " << mName + " is too small, defaulting to " << strDefaultSize;
-            mCommunicator->getProperties()->setProperty(mName + ".ThreadPool.Size", strDefaultSize);
+            mLogger(Info) << "Configured Internal thread pool size for " << mBackplaneAdapterName + " is too small, defaulting to " << strDefaultSize;
+            mCommunicator->getProperties()->setProperty(mBackplaneAdapterName + ".ThreadPool.Size", strDefaultSize);
         }
     }
 

-----------------------------------------------------------------------


-- 
asterisk-scf/release/ice-util-cpp.git



More information about the asterisk-scf-commits mailing list