summaryrefslogtreecommitdiff
path: root/cpp/src/IceGrid/NodeSessionManager.cpp
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2006-10-19 13:01:55 +0000
committerBenoit Foucher <benoit@zeroc.com>2006-10-19 13:01:55 +0000
commit1ff378dd6746af03c3031664991adafcb5972a34 (patch)
tree5c188bd3ee2bff12f64ca15788f275957e04ab40 /cpp/src/IceGrid/NodeSessionManager.cpp
parentfile RubyUtil.cpp was initially added on branch icerb_preview_branch. (diff)
downloadice-1ff378dd6746af03c3031664991adafcb5972a34.tar.bz2
ice-1ff378dd6746af03c3031664991adafcb5972a34.tar.xz
ice-1ff378dd6746af03c3031664991adafcb5972a34.zip
Fixes
Diffstat (limited to 'cpp/src/IceGrid/NodeSessionManager.cpp')
-rw-r--r--cpp/src/IceGrid/NodeSessionManager.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/cpp/src/IceGrid/NodeSessionManager.cpp b/cpp/src/IceGrid/NodeSessionManager.cpp
index 72754da3c53..363f5bec8b0 100644
--- a/cpp/src/IceGrid/NodeSessionManager.cpp
+++ b/cpp/src/IceGrid/NodeSessionManager.cpp
@@ -237,25 +237,24 @@ NodeSessionManager::create(const NodeIPtr& node)
// to load the servers on the node (when createSession invokes
// loadServers() on the session).
//
- //_thread->tryCreateSession(_master);
+ _thread->tryCreateSession(false);
}
void
NodeSessionManager::create(const InternalRegistryPrx& replica)
{
assert(_thread);
+ NodeSessionKeepAliveThreadPtr thread;
if(replica->ice_getIdentity() == _master->ice_getIdentity())
{
- _thread->tryCreateSession(replica);
+ thread = _thread;
}
else
{
- NodeSessionKeepAliveThreadPtr thread = replicaAdded(replica);
- if(thread)
- {
- thread->tryCreateSession(replica);
- }
+ thread = replicaAdded(replica);
}
+ thread->setRegistry(replica);
+ thread->tryCreateSession();
}
void
@@ -309,6 +308,7 @@ NodeSessionManager::replicaAdded(const InternalRegistryPrx& replica)
NodeSessionKeepAliveThreadPtr thread = new NodeSessionKeepAliveThread(replica, _node, _queryObjects);
_sessions.insert(make_pair(replica->ice_getIdentity(), thread));
thread->start();
+ thread->tryCreateSession(false);
return thread;
}
@@ -361,7 +361,7 @@ NodeSessionManager::syncReplicas(const InternalRegistryPrxSeq& replicas)
{
thread = new NodeSessionKeepAliveThread(*p, _node, _queryObjects);
thread->start();
- thread->tryCreateSession(*p);
+ thread->tryCreateSession(false);
}
_sessions.insert(make_pair((*p)->ice_getIdentity(), thread));
}