summaryrefslogtreecommitdiff
path: root/cpp/src/IceGrid/NodeSessionManager.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/NodeSessionManager.cpp
parentFixes (diff)
downloadice-bf5017c7ca41b3eadf67011f79ef7332998a559b.tar.bz2
ice-bf5017c7ca41b3eadf67011f79ef7332998a559b.tar.xz
ice-bf5017c7ca41b3eadf67011f79ef7332998a559b.zip
Fixes
Diffstat (limited to 'cpp/src/IceGrid/NodeSessionManager.cpp')
-rw-r--r--cpp/src/IceGrid/NodeSessionManager.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/cpp/src/IceGrid/NodeSessionManager.cpp b/cpp/src/IceGrid/NodeSessionManager.cpp
index 363f5bec8b0..d27cbc4c315 100644
--- a/cpp/src/IceGrid/NodeSessionManager.cpp
+++ b/cpp/src/IceGrid/NodeSessionManager.cpp
@@ -35,7 +35,7 @@ NodeSessionKeepAliveThread::NodeSessionKeepAliveThread(const InternalRegistryPrx
}
NodeSessionPrx
-NodeSessionKeepAliveThread::createSession(const InternalRegistryPrx& registry, IceUtil::Time& timeout)
+NodeSessionKeepAliveThread::createSession(InternalRegistryPrx& registry, IceUtil::Time& timeout)
{
NodeSessionPrx session;
auto_ptr<Ice::Exception> exception;
@@ -59,7 +59,7 @@ NodeSessionKeepAliveThread::createSession(const InternalRegistryPrx& registry, I
{
exception.reset(ex.ice_clone());
used.insert(registry);
- setRegistry(InternalRegistryPrx::uncheckedCast(registry->ice_endpoints(Ice::EndpointSeq())));
+ registry = InternalRegistryPrx::uncheckedCast(registry->ice_endpoints(Ice::EndpointSeq()));
}
}
@@ -75,7 +75,7 @@ NodeSessionKeepAliveThread::createSession(const InternalRegistryPrx& registry, I
if(newRegistry && used.find(newRegistry) == used.end())
{
session = createSessionImpl(newRegistry, timeout);
- setRegistry(newRegistry);
+ registry = newRegistry;
break;
}
}
@@ -323,7 +323,7 @@ NodeSessionManager::replicaRemoved(const InternalRegistryPrx& replica)
return;
}
- --_serial;
+ ++_serial;
NodeSessionMap::iterator p = _sessions.find(replica->ice_getIdentity());
if(p != _sessions.end())
{