diff options
author | Benoit Foucher <benoit@zeroc.com> | 2016-11-16 09:41:27 +0100 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2016-11-16 09:41:27 +0100 |
commit | 6c8bab2f7c8e83ccebcd0df4119ead1acad50a87 (patch) | |
tree | 1b9a3167eb312028a715504291efb2a8978a4864 /cpp/src | |
parent | Fix updating runtime properties for services using shared communicator (diff) | |
download | ice-6c8bab2f7c8e83ccebcd0df4119ead1acad50a87.tar.bz2 ice-6c8bab2f7c8e83ccebcd0df4119ead1acad50a87.tar.xz ice-6c8bab2f7c8e83ccebcd0df4119ead1acad50a87.zip |
Added CHANGELOG entry for IceGrid bug and fix to use getPropertyAsInt
Diffstat (limited to 'cpp/src')
-rw-r--r-- | cpp/src/IceGrid/ServerI.cpp | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/cpp/src/IceGrid/ServerI.cpp b/cpp/src/IceGrid/ServerI.cpp index 7ce139df955..2fa09214669 100644 --- a/cpp/src/IceGrid/ServerI.cpp +++ b/cpp/src/IceGrid/ServerI.cpp @@ -341,15 +341,7 @@ private: { assert(_p->first.find("config_") == 0); const string service = _p->first.substr(7); - bool useSharedCommunicator = false; - for (PropertyDescriptorSeq::const_iterator d = _properties.at("config").begin(); d != _properties.at("config").end(); ++d) - { - if (d->name == "IceBox.UseSharedCommunicator." + service) - { - useSharedCommunicator = (atoi(d->value.c_str()) > 0); - } - } - if (useSharedCommunicator) + if(getPropertyAsInt(_properties.at("config"), "IceBox.UseSharedCommunicator." + service) > 0) { facet = "IceBox.SharedCommunicator.Properties"; } |