mySQL 5.0.11 sources for tomato
[tomato.git] / release / src / router / mysql / storage / ndb / include / kernel / signaldata / AllocNodeId.hpp
blobe346b344fb9962f40371a42767af5b1e46c7c9e9
1 /* Copyright (c) 2003, 2006 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 ALLOC_NODE_ID_HPP
17 #define ALLOC_NODE_ID_HPP
19 #include "SignalData.hpp"
20 #include <NodeBitmask.hpp>
22 /**
23 * Request to allocate node id
25 class AllocNodeIdReq {
26 public:
27 STATIC_CONST( SignalLength = 4 );
29 Uint32 senderRef;
30 Uint32 senderData;
31 Uint32 nodeId;
32 Uint32 nodeType;
35 class AllocNodeIdConf {
36 public:
37 STATIC_CONST( SignalLength = 3 );
39 Uint32 senderRef;
40 Uint32 senderData;
41 Uint32 nodeId;
44 class AllocNodeIdRef {
45 public:
46 STATIC_CONST( SignalLength = 5 );
48 enum ErrorCodes {
49 NoError = 0,
50 Undefined = 1,
51 NF_FakeErrorREF = 11,
52 Busy = 701,
53 NotMaster = 702,
54 NodeReserved = 1701,
55 NodeConnected = 1702,
56 NodeFailureHandlingNotCompleted = 1703,
57 NodeTypeMismatch = 1704
60 Uint32 senderRef;
61 Uint32 senderData;
62 Uint32 nodeId;
63 Uint32 errorCode;
64 Uint32 masterRef;
66 #endif