diff options
Diffstat (limited to 'ndb/src/ndbapi/NdbApiSignal.hpp')
-rw-r--r-- | ndb/src/ndbapi/NdbApiSignal.hpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/ndb/src/ndbapi/NdbApiSignal.hpp b/ndb/src/ndbapi/NdbApiSignal.hpp index 9d5bc0847be..52c3be2256c 100644 --- a/ndb/src/ndbapi/NdbApiSignal.hpp +++ b/ndb/src/ndbapi/NdbApiSignal.hpp @@ -71,6 +71,8 @@ public: const Uint32 * getDataPtr() const; Uint32 * getDataPtrSend(); + NodeId get_sender_node(); + /** * Fragmentation */ @@ -104,6 +106,17 @@ private: Uint32 *theRealData; }; /********************************************************************** +NodeId get_sender_node +Remark: Get the node id of the sender +***********************************************************************/ +inline +NodeId +NdbApiSignal::get_sender_node() +{ + return refToNode(theSendersBlockRef); +} + +/********************************************************************** void getLength Remark: Get the length of the signal. ******************************************************************************/ |