Documentation Home
MySQL NDB Cluster API Developer Guide
Download this Manual Table::getFragmentNodes()

Description.  This method retrieves a list of nodes storing a given fragment.


Uint32 getFragmentNodes
      Uint32 fragmentId,
      Uint32* nodeIdArrayPtr,
      Uint32 arraySize
    ) const

Parameters.  This method takes the following three parameters:

  • fragmentId: The ID of the desired fragment.

  • nodeIdArrayPtr: Pointer to an array of node IDs of the nodes containing this fragment.


    Normally, the primary fragment is entry 0 in this array.

  • arraySize: The size of the array containing the node IDs. If this is less than the number of fragments, then only the first arraySize entries are written to this array.

Return value.  A return value of 0 indicates an error; otherwise, this is the number of table fragments, as a 32-bit unsigned integer.

User Comments
User comments in this section are, as the name implies, provided by MySQL users. The MySQL documentation team is not responsible for, nor do they endorse, any of the information provided here.
Sign Up Login You must be logged in to post a comment.