this function can be used to cause an initial restart,
waiting restart, and immediate (forced) restart on one or
more Cluster data nodes. However,
ndb_mgm_restart3() provides the
additional options of checking whether disconnection is
required prior to the restart.
int ndb_mgm_restart3 ( NdbMgmHandle
number, const int*
ndb_mgm_restart3() takes 7 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 forced to restart immediately without performing a graceful restart.
true), this means the you must disconnect before you can apply the command to restart. For example, disconnecting is required when stopping the management server to which the handle is connected.
The number of nodes actually restarted;
-1 on failure.