mySQL 5.0.11 sources for tomato
[tomato.git] / release / src / router / mysql / storage / ndb / include / kernel / signaldata / StartInfo.hpp
blobd631cd4131118205d8df1891e4218f60de669512
1 /* Copyright (c) 2003-2005 MySQL AB
3 This program is free software; you can redistribute it and/or modify
4 it under the terms of the GNU General Public License as published by
5 the Free Software Foundation; version 2 of the License.
7 This program is distributed in the hope that it will be useful,
8 but WITHOUT ANY WARRANTY; without even the implied warranty of
9 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 GNU General Public License for more details.
12 You should have received a copy of the GNU General Public License
13 along with this program; if not, write to the Free Software
14 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA */
16 #ifndef START_INFO_HPP
17 #define START_INFO_HPP
19 /**
20 * This signal is sent from the master DIH to all DIHs
21 * when a node is starting.
22 * If the typeStart is initial node restart then the node
23 * has started without filesystem.
24 * All DIHs must then "forget" that the starting node has
25 * performed LCP's ever.
27 * @see StartPermReq
30 class StartInfoReq {
31 /**
32 * Sender/Receiver
34 friend class Dbdih;
36 Uint32 startingNodeId;
37 Uint32 typeStart;
38 Uint32 systemFailureNo;
40 public:
41 STATIC_CONST( SignalLength = 3 );
44 class StartInfoConf {
46 /**
47 * Sender/Receiver
49 friend class Dbdih;
51 /**
52 * NodeId of sending node
53 * which is "done"
55 Uint32 sendingNodeId;
56 Uint32 startingNodeId;
58 public:
59 STATIC_CONST( SignalLength = 2 );
62 class StartInfoRef {
64 /**
65 * Sender/Receiver
67 friend class Dbdih;
69 /**
70 * NodeId of sending node
71 * The node was refused to start. This could be
72 * because there are still processes handling
73 * previous information from the starting node.
75 Uint32 sendingNodeId;
76 Uint32 startingNodeId;
77 Uint32 errorCode;
79 public:
80 STATIC_CONST( SignalLength = 3 );
83 #endif