this function can be used to restart one or more Cluster
data nodes. However,
provides additional restart options, including initial
restart, waiting start, and immediate (forced) restart.
int ndb_mgm_restart2 ( NdbMgmHandle
number, const int*
ndb_mgm_restart2() takes 6 parameters:
numberof nodes to be stopped. Use
0to stop all of the data nodes in the cluster.
listof the node IDs of the nodes to be stopped.
initialis true (
1), then each node undergoes an initial restart—that is, its file system is removed.
nostartis true, then the nodes are not actually started, but instead are left ready for a start command.
abortis true, then the nodes are restarted immediately, bypassing any graceful restart.
The number of nodes actually restarted;
-1 on failure.