Debian Codegraph @

mysql-test/suite/ndb/include/restart_random_node.inc

raw
1 ##
2 ## Restarts a single random NDB data node
3 ##
4 ## Parameters:
5 ## $waiter_timeout_start - How long wo tait for a single node to start, default from restart_node.inc
6 ## $waiter_timeout_stop - How long to wait for a single node to stop, default from restart_node.inc
7 ## $MTR_NDB_FIRST_NDBD_NODEID - The first node id of the NDBD data nodes
8 ## $MTR_NDB_NO_OF_NODES - The number of NDBD data nodes
9 ##
10 ## This include file has as a prerequisite that the NDBD node ids is in a numbered range without
11 ## holes which starts with MTR_NDB_FIRST_NDBD_NODEID and has no more than MTR_NDB_NO_OF_NODES nodes.
12 ##
13 ## The last two parameters are normally provided by
14 ## --source suite/ndb/include/ndb_info.inc
15 ##
16
17 --let $ndb_node_id = `SELECT FLOOR($MTR_NDB_FIRST_NDBD_NODEID + (RAND() * $MTR_NDB_NO_OF_NODES))`
18 --echo # Restarting random node $ndb_node_id
19 --source suite/ndb/include/restart_node.inc
20 --let $ndb_node_id=