diff options
author | Benoit Foucher <benoit@zeroc.com> | 2006-09-14 18:50:17 +0000 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2006-09-14 18:50:17 +0000 |
commit | a7da4de2000e9738ed895e534e782e82125ac2c0 (patch) | |
tree | 367b47c719e4860fb096ec5fc51aee0ae3034cb9 /cpp/src/IceGrid/NodeSessionI.cpp | |
parent | Fix (diff) | |
download | ice-a7da4de2000e9738ed895e534e782e82125ac2c0.tar.bz2 ice-a7da4de2000e9738ed895e534e782e82125ac2c0.tar.xz ice-a7da4de2000e9738ed895e534e782e82125ac2c0.zip |
Fixed TODOs
Diffstat (limited to 'cpp/src/IceGrid/NodeSessionI.cpp')
-rw-r--r-- | cpp/src/IceGrid/NodeSessionI.cpp | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/cpp/src/IceGrid/NodeSessionI.cpp b/cpp/src/IceGrid/NodeSessionI.cpp index e5ca8dfef6d..747fbcec915 100644 --- a/cpp/src/IceGrid/NodeSessionI.cpp +++ b/cpp/src/IceGrid/NodeSessionI.cpp @@ -119,12 +119,6 @@ NodeSessionI::waitForApplicationReplication_async(const AMD_NodeSession_waitForA void NodeSessionI::destroy(const Ice::Current& current) { - // - // TODO: XXX: If we set destroy to true now, it's possible that - // the node calls keepAlive on the sesion and tries to create the - // session after getting the ONE and before the node is removed - // from the db... - // { Lock sync(*this); if(_destroy) @@ -177,3 +171,10 @@ NodeSessionI::timestamp() const } return _timestamp; } + +bool +NodeSessionI::isDestroyed() const +{ + Lock sync(*this); + return _destroy; +} |