Documentation Home
MySQL NDB Cluster API Developer Guide
Download this Manual ndb_mgm_stop2()

Description.  Like ndb_mgm_stop(), this function stops one or more data nodes. However, it offers the ability to specify whether or not the nodes shut down gracefully.


int ndb_mgm_stop2
      NdbMgmHandle handle,
      int          number,
      const int*   list,
      int          abort

Parameters.  ndb_mgm_stop2() takes 4 parameters:

  • An NdbMgmHandle.

  • The number of nodes to be stopped. Use 0 to stop all of the data nodes in the cluster.

  • A list of the node IDs of the nodes to be stopped.

  • The value of abort determines how the nodes will be shut down. 1 indicates the nodes will shut down immediately; 0 indicates that the nodes will stop gracefully.

Return value.  The number of nodes actually stopped; in the event of failure, -1 is returned.