summaryrefslogtreecommitdiff
path: root/cpp/src/IceGrid/ReplicaSessionManager.cpp
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2006-10-19 13:41:38 +0000
committerBenoit Foucher <benoit@zeroc.com>2006-10-19 13:41:38 +0000
commitbf5017c7ca41b3eadf67011f79ef7332998a559b (patch)
treefc9ba9858183beecc91b2290cd8075968a2f02dc /cpp/src/IceGrid/ReplicaSessionManager.cpp
parentFixes (diff)
downloadice-bf5017c7ca41b3eadf67011f79ef7332998a559b.tar.bz2
ice-bf5017c7ca41b3eadf67011f79ef7332998a559b.tar.xz
ice-bf5017c7ca41b3eadf67011f79ef7332998a559b.zip
Fixes
Diffstat (limited to 'cpp/src/IceGrid/ReplicaSessionManager.cpp')
-rw-r--r--cpp/src/IceGrid/ReplicaSessionManager.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/cpp/src/IceGrid/ReplicaSessionManager.cpp b/cpp/src/IceGrid/ReplicaSessionManager.cpp
index 82adfb54172..6c6d3f91d92 100644
--- a/cpp/src/IceGrid/ReplicaSessionManager.cpp
+++ b/cpp/src/IceGrid/ReplicaSessionManager.cpp
@@ -398,7 +398,7 @@ ReplicaSessionManager::keepAlive(const ReplicaSessionPrx& session)
}
ReplicaSessionPrx
-ReplicaSessionManager::createSession(const InternalRegistryPrx& registry, IceUtil::Time& timeout)
+ReplicaSessionManager::createSession(InternalRegistryPrx& registry, IceUtil::Time& timeout)
{
ReplicaSessionPrx session;
auto_ptr<Ice::Exception> exception;
@@ -421,7 +421,7 @@ ReplicaSessionManager::createSession(const InternalRegistryPrx& registry, IceUti
{
exception.reset(ex.ice_clone());
used.insert(registry);
- _thread->setRegistry(InternalRegistryPrx::uncheckedCast(registry->ice_endpoints(Ice::EndpointSeq())));
+ registry = InternalRegistryPrx::uncheckedCast(registry->ice_endpoints(Ice::EndpointSeq()));
}
}
@@ -437,7 +437,7 @@ ReplicaSessionManager::createSession(const InternalRegistryPrx& registry, IceUti
if(newRegistry && used.find(newRegistry) == used.end())
{
session = createSessionImpl(newRegistry, timeout);
- _thread->setRegistry(newRegistry);
+ registry = newRegistry;
break;
}
}