summaryrefslogtreecommitdiff
path: root/cpp/src/IceGrid/AdapterCache.cpp
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2006-09-21 08:26:45 +0000
committerBenoit Foucher <benoit@zeroc.com>2006-09-21 08:26:45 +0000
commit43f761c96db3c3a5d02d6c59939baf4dee844e1d (patch)
treecff6f4051c760dfc75c2fa3b01a33ea2e3562839 /cpp/src/IceGrid/AdapterCache.cpp
parentFixed typo in doc comment. (diff)
downloadice-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.cpp6
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;