diff options
author | Benoit Foucher <benoit@zeroc.com> | 2017-02-06 10:42:03 +0100 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2017-02-06 10:42:03 +0100 |
commit | 49a87f062dbd77d1d5389d486e7fb9f0e79b6fed (patch) | |
tree | 70879a75716adad2694d05f81ef98f69e141a33c /cpp/src/IceGrid/NodeAdminRouter.cpp | |
parent | Slice compilers now emit deprecated warning for classes with operations (ICE-... (diff) | |
download | ice-49a87f062dbd77d1d5389d486e7fb9f0e79b6fed.tar.bz2 ice-49a87f062dbd77d1d5389d486e7fb9f0e79b6fed.tar.xz ice-49a87f062dbd77d1d5389d486e7fb9f0e79b6fed.zip |
Fixed ICE-7548 - getAdminProxy no longer returns 0 if synchronization is in progress
Diffstat (limited to 'cpp/src/IceGrid/NodeAdminRouter.cpp')
-rw-r--r-- | cpp/src/IceGrid/NodeAdminRouter.cpp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/cpp/src/IceGrid/NodeAdminRouter.cpp b/cpp/src/IceGrid/NodeAdminRouter.cpp index fe151155eec..fe36134a2b3 100644 --- a/cpp/src/IceGrid/NodeAdminRouter.cpp +++ b/cpp/src/IceGrid/NodeAdminRouter.cpp @@ -22,8 +22,10 @@ IceGrid::NodeServerAdminRouter::NodeServerAdminRouter(const NodeIPtr& node) : { } -ObjectPrx -IceGrid::NodeServerAdminRouter::getTarget(const Current& current) +void +IceGrid::NodeServerAdminRouter::ice_invoke_async(const AMD_Object_ice_invokePtr& cb, + const std::pair<const Ice::Byte*, const Ice::Byte*>& inParams, + const Current& current) { // // First, get the ServerI servant @@ -34,7 +36,7 @@ IceGrid::NodeServerAdminRouter::getTarget(const Current& current) { throw ObjectNotExistException(__FILE__, __LINE__); } - + // // Then get a proxy to the Process facet of the real admin object // @@ -44,7 +46,7 @@ IceGrid::NodeServerAdminRouter::getTarget(const Current& current) { throw ObjectNotExistException(__FILE__, __LINE__); } - + // // If this is a legacy Process proxy with no facet, we keep target as is // @@ -56,6 +58,6 @@ IceGrid::NodeServerAdminRouter::getTarget(const Current& current) target = target->ice_facet(current.facet); } - return target; + invokeOnTarget(target, cb, inParams, current); } |