MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
StartPerm.hpp
1 /*
2  Copyright (C) 2003, 2005-2007 MySQL AB
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 START_PERM_REQ_HPP
20 #define START_PERM_REQ_HPP
21 
28 class StartPermReq {
32  friend class Dbdih;
33 
34 public:
35  STATIC_CONST( SignalLength = 3 );
36 private:
37 
38  Uint32 blockRef;
39  Uint32 nodeId;
40  Uint32 startType;
41 };
42 
47  friend class Dbdih;
48 
49 public:
50  STATIC_CONST( SignalLength = 3 );
51 private:
52 
53  Uint32 startingNodeId;
54  Uint32 systemFailureNo;
55  Uint32 microGCP;
56 };
57 
58 class StartPermRef {
62  friend class Dbdih;
63 
64 public:
65  STATIC_CONST( SignalLength = 2 );
66 private:
67 
68  Uint32 startingNodeId;
69  Uint32 errorCode;
70 
71  enum ErrorCode
72  {
73  ZNODE_ALREADY_STARTING_ERROR = 305,
74  ZNODE_START_DISALLOWED_ERROR = 309,
75  InitialStartRequired = 320
76  };
77 };
78 #endif