ndb -

  add new functions for (easier) using NdbRestarter
parent 8fa46718
...@@ -27,15 +27,34 @@ public: ...@@ -27,15 +27,34 @@ public:
int getDbNodeId(int _i); int getDbNodeId(int _i);
enum RestartFlags {
NRRF_INITIAL = 0x1,
NRRF_NOSTART = 0x2,
NRRF_ABORT = 0x4
};
int restartOneDbNode(int _nodeId, int restartOneDbNode(int _nodeId,
bool initial = false, bool initial = false,
bool nostart = false, bool nostart = false,
bool abort = false); bool abort = false);
int restartOneDbNode2(int _nodeId, Uint32 flags){
return restartOneDbNode(_nodeId,
flags & NRRF_INITIAL,
flags & NRRF_NOSTART,
flags & NRRF_ABORT);
}
int restartAll(bool initial = false, int restartAll(bool initial = false,
bool nostart = false, bool nostart = false,
bool abort = false); bool abort = false);
int restartAll2(Uint32 flags){
return restartAll(flags & NRRF_INITIAL,
flags & NRRF_NOSTART,
flags & NRRF_ABORT);
}
int startAll(); int startAll();
int startNodes(const int * _nodes, int _num_nodes); int startNodes(const int * _nodes, int _num_nodes);
int waitClusterStarted(unsigned int _timeout = 120); int waitClusterStarted(unsigned int _timeout = 120);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment