mirror of
https://github.com/MariaDB/server.git
synced 2025-01-19 05:22:25 +01:00
ndb -
add new functions for (easier) using NdbRestarter
This commit is contained in:
parent
8fa46718ec
commit
00ee136e45
1 changed files with 19 additions and 0 deletions
|
@ -27,15 +27,34 @@ public:
|
|||
|
||||
int getDbNodeId(int _i);
|
||||
|
||||
enum RestartFlags {
|
||||
NRRF_INITIAL = 0x1,
|
||||
NRRF_NOSTART = 0x2,
|
||||
NRRF_ABORT = 0x4
|
||||
};
|
||||
|
||||
int restartOneDbNode(int _nodeId,
|
||||
bool initial = false,
|
||||
bool nostart = 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,
|
||||
bool nostart = false,
|
||||
bool abort = false);
|
||||
|
||||
int restartAll2(Uint32 flags){
|
||||
return restartAll(flags & NRRF_INITIAL,
|
||||
flags & NRRF_NOSTART,
|
||||
flags & NRRF_ABORT);
|
||||
}
|
||||
|
||||
int startAll();
|
||||
int startNodes(const int * _nodes, int _num_nodes);
|
||||
int waitClusterStarted(unsigned int _timeout = 120);
|
||||
|
|
Loading…
Reference in a new issue