diff options
author | Benoit Foucher <benoit@zeroc.com> | 2006-09-21 08:26:45 +0000 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2006-09-21 08:26:45 +0000 |
commit | 43f761c96db3c3a5d02d6c59939baf4dee844e1d (patch) | |
tree | cff6f4051c760dfc75c2fa3b01a33ea2e3562839 /cpp/src/IceGrid/AdapterCache.cpp | |
parent | Fixed typo in doc comment. (diff) | |
download | ice-43f761c96db3c3a5d02d6c59939baf4dee844e1d.tar.bz2 ice-43f761c96db3c3a5d02d6c59939baf4dee844e1d.tar.xz ice-43f761c96db3c3a5d02d6c59939baf4dee844e1d.zip |
Fixed bug when no load balancing was set, not all the endpoints were
returned
Diffstat (limited to 'cpp/src/IceGrid/AdapterCache.cpp')
-rw-r--r-- | cpp/src/IceGrid/AdapterCache.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/cpp/src/IceGrid/AdapterCache.cpp b/cpp/src/IceGrid/AdapterCache.cpp index 449e03b5c6a..8b9e8f8c53b 100644 --- a/cpp/src/IceGrid/AdapterCache.cpp +++ b/cpp/src/IceGrid/AdapterCache.cpp @@ -304,7 +304,11 @@ ReplicaGroupEntry::update(const LoadBalancingPolicyPtr& policy) { Lock sync(*this); _loadBalancing = policy; - if(_loadBalancing) + if(!_loadBalancing) + { + _loadBalancingNReplicas = 0; + } + else { istringstream is(_loadBalancing->nReplicas); int nReplicas = 0; |