diff options
Diffstat (limited to 'cpp/src/IceGrid/Database.cpp')
-rw-r--r-- | cpp/src/IceGrid/Database.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/src/IceGrid/Database.cpp b/cpp/src/IceGrid/Database.cpp index a95e1c4773c..e7e20fd3a43 100644 --- a/cpp/src/IceGrid/Database.cpp +++ b/cpp/src/IceGrid/Database.cpp @@ -742,8 +742,8 @@ Database::getAdapters(const string& id, bool allRegistered, int& endpointCount) Ice::Identity identity; identity.category = "IceGridAdapter"; identity.name = id; - AdapterPrx adpt = AdapterPrx::uncheckedCast(_internalAdapter->createDirectProxy(identity)); - adpts.push_back(make_pair(id, adpt)); + Ice::ObjectPrx adpt = _internalAdapter->createDirectProxy(identity)->ice_collocationOptimization(false); + adpts.push_back(make_pair(id, AdapterPrx::uncheckedCast(adpt))); endpointCount = 1; return adpts; } |