summaryrefslogtreecommitdiff
path: root/cpp/src/IceGrid/AdapterCache.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/IceGrid/AdapterCache.cpp')
-rw-r--r--cpp/src/IceGrid/AdapterCache.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/cpp/src/IceGrid/AdapterCache.cpp b/cpp/src/IceGrid/AdapterCache.cpp
index aff2dd311d9..2eedddda998 100644
--- a/cpp/src/IceGrid/AdapterCache.cpp
+++ b/cpp/src/IceGrid/AdapterCache.cpp
@@ -148,7 +148,7 @@ ServerAdapterEntry::ServerAdapterEntry(Cache<string, AdapterEntry>& cache, const
}
vector<pair<string, AdapterPrx> >
-ServerAdapterEntry::getProxies(int& nReplicas)
+ServerAdapterEntry::getProxies(bool, int& nReplicas)
{
vector<pair<string, AdapterPrx> > adapters;
try
@@ -302,7 +302,7 @@ ReplicaGroupEntry::removeReplica(const string& replicaId)
}
vector<pair<string, AdapterPrx> >
-ReplicaGroupEntry::getProxies(int& nReplicas)
+ReplicaGroupEntry::getProxies(bool allRegistered, int& nReplicas)
{
ReplicaSeq replicas;
bool adaptive = false;
@@ -368,6 +368,10 @@ ReplicaGroupEntry::getProxies(int& nReplicas)
}
catch(const NodeUnreachableException&)
{
+ if(allRegistered)
+ {
+ adapters.push_back(make_pair(p->first, AdapterPrx()));
+ }
}
}
return adapters;