diff options
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; +} |