diff options
author | Dwayne Boone <dwayne@zeroc.com> | 2009-04-23 09:48:57 -0230 |
---|---|---|
committer | Dwayne Boone <dwayne@zeroc.com> | 2009-04-23 09:48:57 -0230 |
commit | 826f1e26ba10453587b3260d520d3e94496cf1c5 (patch) | |
tree | ed709a9e3c00723e4f309c6e9c0d7a71494320ff /cpp/src/Ice/ThreadPool.cpp | |
parent | Bugs 3002/3003 - default value of SizeWarn is now 0 (diff) | |
download | ice-826f1e26ba10453587b3260d520d3e94496cf1c5.tar.bz2 ice-826f1e26ba10453587b3260d520d3e94496cf1c5.tar.xz ice-826f1e26ba10453587b3260d520d3e94496cf1c5.zip |
Bug 3002 - SizeWarn < Size
Diffstat (limited to 'cpp/src/Ice/ThreadPool.cpp')
-rw-r--r-- | cpp/src/Ice/ThreadPool.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/cpp/src/Ice/ThreadPool.cpp b/cpp/src/Ice/ThreadPool.cpp index 647374cfbdb..7c3f12dadf9 100644 --- a/cpp/src/Ice/ThreadPool.cpp +++ b/cpp/src/Ice/ThreadPool.cpp @@ -63,7 +63,13 @@ IceInternal::ThreadPool::ThreadPool(const InstancePtr& instance, const string& p } int sizeWarn = _instance->initializationData().properties->getPropertyAsInt(_prefix + ".SizeWarn"); - if(sizeWarn > sizeMax) + if(sizeWarn < size) + { + Warning out(_instance->initializationData().logger); + out << _prefix << ".SizeWarn < " << _prefix << ".Size; adjusted SizeWarn to Size (" << size << ")"; + sizeWarn = size; + } + else if(sizeWarn > sizeMax) { Warning out(_instance->initializationData().logger); out << _prefix << ".SizeWarn > " << _prefix << ".SizeMax; adjusted SizeWarn to SizeMax (" << sizeMax << ")"; |