Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
9cc27b67
Commit
9cc27b67
authored
Aug 07, 2006
by
jonas@perch.ndb.mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ndb - some hugo updates
make dump state args list const make node lists const
parent
e32d7bce
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
17 deletions
+17
-17
storage/ndb/include/mgmapi/mgmapi_debug.h
storage/ndb/include/mgmapi/mgmapi_debug.h
+1
-1
storage/ndb/src/mgmapi/mgmapi.cpp
storage/ndb/src/mgmapi/mgmapi.cpp
+1
-1
storage/ndb/test/include/NdbRestarter.hpp
storage/ndb/test/include/NdbRestarter.hpp
+7
-7
storage/ndb/test/src/NdbRestarter.cpp
storage/ndb/test/src/NdbRestarter.cpp
+8
-8
No files found.
storage/ndb/include/mgmapi/mgmapi_debug.h
View file @
9cc27b67
...
@@ -101,7 +101,7 @@ extern "C" {
...
@@ -101,7 +101,7 @@ extern "C" {
*/
*/
int
ndb_mgm_dump_state
(
NdbMgmHandle
handle
,
int
ndb_mgm_dump_state
(
NdbMgmHandle
handle
,
int
nodeId
,
int
nodeId
,
int
*
args
,
const
int
*
args
,
int
num_args
,
int
num_args
,
struct
ndb_mgm_reply
*
reply
);
struct
ndb_mgm_reply
*
reply
);
...
...
storage/ndb/src/mgmapi/mgmapi.cpp
View file @
9cc27b67
...
@@ -1442,7 +1442,7 @@ ndb_mgm_listen_event(NdbMgmHandle handle, const int filter[])
...
@@ -1442,7 +1442,7 @@ ndb_mgm_listen_event(NdbMgmHandle handle, const int filter[])
extern
"C"
extern
"C"
int
int
ndb_mgm_dump_state
(
NdbMgmHandle
handle
,
int
nodeId
,
int
*
_args
,
ndb_mgm_dump_state
(
NdbMgmHandle
handle
,
int
nodeId
,
const
int
*
_args
,
int
_num_args
,
struct
ndb_mgm_reply
*
/* reply */
)
int
_num_args
,
struct
ndb_mgm_reply
*
/* reply */
)
{
{
SET_ERROR
(
handle
,
NDB_MGM_NO_ERROR
,
"Executing: ndb_mgm_dump_state"
);
SET_ERROR
(
handle
,
NDB_MGM_NO_ERROR
,
"Executing: ndb_mgm_dump_state"
);
...
...
storage/ndb/test/include/NdbRestarter.hpp
View file @
9cc27b67
...
@@ -38,16 +38,16 @@ public:
...
@@ -38,16 +38,16 @@ public:
bool
abort
=
false
);
bool
abort
=
false
);
int
startAll
();
int
startAll
();
int
startNodes
(
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
);
int
waitClusterSingleUser
(
unsigned
int
_timeout
=
120
);
int
waitClusterSingleUser
(
unsigned
int
_timeout
=
120
);
int
waitClusterStartPhase
(
int
_startphase
,
unsigned
int
_timeout
=
120
);
int
waitClusterStartPhase
(
int
_startphase
,
unsigned
int
_timeout
=
120
);
int
waitClusterNoStart
(
unsigned
int
_timeout
=
120
);
int
waitClusterNoStart
(
unsigned
int
_timeout
=
120
);
int
waitNodesStarted
(
int
*
_nodes
,
int
_num_nodes
,
int
waitNodesStarted
(
const
int
*
_nodes
,
int
_num_nodes
,
unsigned
int
_timeout
=
120
);
unsigned
int
_timeout
=
120
);
int
waitNodesStartPhase
(
int
*
_nodes
,
int
_num_nodes
,
int
waitNodesStartPhase
(
const
int
*
_nodes
,
int
_num_nodes
,
int
_startphase
,
unsigned
int
_timeout
=
120
);
int
_startphase
,
unsigned
int
_timeout
=
120
);
int
waitNodesNoStart
(
int
*
_nodes
,
int
_num_nodes
,
int
waitNodesNoStart
(
const
int
*
_nodes
,
int
_num_nodes
,
unsigned
int
_timeout
=
120
);
unsigned
int
_timeout
=
120
);
...
@@ -58,8 +58,8 @@ public:
...
@@ -58,8 +58,8 @@ public:
int
enterSingleUserMode
(
int
_nodeId
);
int
enterSingleUserMode
(
int
_nodeId
);
int
exitSingleUserMode
();
int
exitSingleUserMode
();
int
dumpStateOneNode
(
int
_nodeId
,
int
*
_args
,
int
_num_args
);
int
dumpStateOneNode
(
int
_nodeId
,
const
int
*
_args
,
int
_num_args
);
int
dumpStateAllNodes
(
int
*
_args
,
int
_num_args
);
int
dumpStateAllNodes
(
const
int
*
_args
,
int
_num_args
);
int
getMasterNodeId
();
int
getMasterNodeId
();
int
getRandomNodeSameNodeGroup
(
int
nodeId
,
int
randomNumber
);
int
getRandomNodeSameNodeGroup
(
int
nodeId
,
int
randomNumber
);
...
@@ -74,7 +74,7 @@ protected:
...
@@ -74,7 +74,7 @@ protected:
unsigned
int
_timeout
,
unsigned
int
_timeout
,
int
_startphase
=
-
1
);
int
_startphase
=
-
1
);
int
waitNodesState
(
int
*
_nodes
,
int
_num_nodes
,
int
waitNodesState
(
const
int
*
_nodes
,
int
_num_nodes
,
ndb_mgm_node_status
_status
,
ndb_mgm_node_status
_status
,
unsigned
int
_timeout
,
unsigned
int
_timeout
,
int
_startphase
=
-
1
);
int
_startphase
=
-
1
);
...
...
storage/ndb/test/src/NdbRestarter.cpp
View file @
9cc27b67
...
@@ -249,7 +249,7 @@ NdbRestarter::waitClusterState(ndb_mgm_node_status _status,
...
@@ -249,7 +249,7 @@ NdbRestarter::waitClusterState(ndb_mgm_node_status _status,
int
int
NdbRestarter
::
waitNodesState
(
int
*
_nodes
,
int
_num_nodes
,
NdbRestarter
::
waitNodesState
(
const
int
*
_nodes
,
int
_num_nodes
,
ndb_mgm_node_status
_status
,
ndb_mgm_node_status
_status
,
unsigned
int
_timeout
,
unsigned
int
_timeout
,
int
_startphase
){
int
_startphase
){
...
@@ -367,20 +367,20 @@ NdbRestarter::waitNodesState(int * _nodes, int _num_nodes,
...
@@ -367,20 +367,20 @@ NdbRestarter::waitNodesState(int * _nodes, int _num_nodes,
return
0
;
return
0
;
}
}
int
NdbRestarter
::
waitNodesStarted
(
int
*
_nodes
,
int
_num_nodes
,
int
NdbRestarter
::
waitNodesStarted
(
const
int
*
_nodes
,
int
_num_nodes
,
unsigned
int
_timeout
){
unsigned
int
_timeout
){
return
waitNodesState
(
_nodes
,
_num_nodes
,
return
waitNodesState
(
_nodes
,
_num_nodes
,
NDB_MGM_NODE_STATUS_STARTED
,
_timeout
);
NDB_MGM_NODE_STATUS_STARTED
,
_timeout
);
}
}
int
NdbRestarter
::
waitNodesStartPhase
(
int
*
_nodes
,
int
_num_nodes
,
int
NdbRestarter
::
waitNodesStartPhase
(
const
int
*
_nodes
,
int
_num_nodes
,
int
_startphase
,
unsigned
int
_timeout
){
int
_startphase
,
unsigned
int
_timeout
){
return
waitNodesState
(
_nodes
,
_num_nodes
,
return
waitNodesState
(
_nodes
,
_num_nodes
,
NDB_MGM_NODE_STATUS_STARTING
,
_timeout
,
NDB_MGM_NODE_STATUS_STARTING
,
_timeout
,
_startphase
);
_startphase
);
}
}
int
NdbRestarter
::
waitNodesNoStart
(
int
*
_nodes
,
int
_num_nodes
,
int
NdbRestarter
::
waitNodesNoStart
(
const
int
*
_nodes
,
int
_num_nodes
,
unsigned
int
_timeout
){
unsigned
int
_timeout
){
return
waitNodesState
(
_nodes
,
_num_nodes
,
return
waitNodesState
(
_nodes
,
_num_nodes
,
NDB_MGM_NODE_STATUS_NOT_STARTED
,
_timeout
);
NDB_MGM_NODE_STATUS_NOT_STARTED
,
_timeout
);
...
@@ -549,7 +549,7 @@ int NdbRestarter::startAll(){
...
@@ -549,7 +549,7 @@ int NdbRestarter::startAll(){
}
}
int
NdbRestarter
::
startNodes
(
int
*
nodes
,
int
num_nodes
){
int
NdbRestarter
::
startNodes
(
const
int
*
nodes
,
int
num_nodes
){
if
(
!
isConnected
())
if
(
!
isConnected
())
return
-
1
;
return
-
1
;
...
@@ -599,7 +599,7 @@ int NdbRestarter::insertErrorInAllNodes(int _error){
...
@@ -599,7 +599,7 @@ int NdbRestarter::insertErrorInAllNodes(int _error){
int
NdbRestarter
::
dumpStateOneNode
(
int
_nodeId
,
int
*
_args
,
int
_num_args
){
int
NdbRestarter
::
dumpStateOneNode
(
int
_nodeId
,
const
int
*
_args
,
int
_num_args
){
if
(
!
isConnected
())
if
(
!
isConnected
())
return
-
1
;
return
-
1
;
...
@@ -617,7 +617,7 @@ int NdbRestarter::dumpStateOneNode(int _nodeId, int * _args, int _num_args){
...
@@ -617,7 +617,7 @@ int NdbRestarter::dumpStateOneNode(int _nodeId, int * _args, int _num_args){
return
reply
.
return_code
;
return
reply
.
return_code
;
}
}
int
NdbRestarter
::
dumpStateAllNodes
(
int
*
_args
,
int
_num_args
){
int
NdbRestarter
::
dumpStateAllNodes
(
const
int
*
_args
,
int
_num_args
){
if
(
!
isConnected
())
if
(
!
isConnected
())
return
-
1
;
return
-
1
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment