MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AllocNodeId.hpp
1 /*
2  Copyright (C) 2006 MySQL AB, 2009 Sun Microsystems, Inc.
3  All rights reserved. Use is subject to license terms.
4 
5  This program is free software; you can redistribute it and/or modify
6  it under the terms of the GNU General Public License as published by
7  the Free Software Foundation; version 2 of the License.
8 
9  This program is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  GNU General Public License for more details.
13 
14  You should have received a copy of the GNU General Public License
15  along with this program; if not, write to the Free Software
16  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
17 */
18 
19 #ifndef ALLOC_NODE_ID_HPP
20 #define ALLOC_NODE_ID_HPP
21 
22 #include "SignalData.hpp"
23 #include <NodeBitmask.hpp>
24 
29 public:
30  STATIC_CONST( SignalLength = 5 );
31  STATIC_CONST( SignalLengthQMGR = 7 );
32 
33  Uint32 senderRef;
34  Uint32 senderData;
35  Uint32 nodeId;
36  Uint32 nodeType;
37  Uint32 timeout;
38 
39  Uint32 secret_lo;
40  Uint32 secret_hi;
41 };
42 
44 public:
45  STATIC_CONST( SignalLength = 5 );
46 
47  Uint32 senderRef;
48  Uint32 senderData;
49  Uint32 nodeId;
50  Uint32 secret_lo;
51  Uint32 secret_hi;
52 };
53 
55 public:
56  STATIC_CONST( SignalLength = 5 );
57 
58  enum ErrorCodes {
59  NoError = 0,
60  Undefined = 1,
61  NF_FakeErrorREF = 11,
62  Busy = 701,
63  NotMaster = 702,
64  NodeReserved = 1701,
65  NodeConnected = 1702,
66  NodeFailureHandlingNotCompleted = 1703,
67  NodeTypeMismatch = 1704
68  };
69 
70  Uint32 senderRef;
71  Uint32 senderData;
72  Uint32 nodeId;
73  Uint32 errorCode;
74  Uint32 masterRef;
75 };
76 #endif