MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
CreateFragmentation.hpp
1 /*
2  Copyright (C) 2003-2006, 2008 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 CREATE_FRAGMENTATION_REQ_HPP
20 #define CREATE_FRAGMENTATION_REQ_HPP
21 
22 #include "SignalData.hpp"
23 
28  friend class Dbdict;
29 
33  friend class Dbdih;
34 
35  friend bool printCREATE_FRAGMENTATION_REQ(FILE *,
36  const Uint32 *, Uint32, Uint16);
37 public:
38  STATIC_CONST( SignalLength = 7 );
39 
40  enum RequestInfo {
41  RI_ADD_PARTITION = 0x1,
42  RI_GET_FRAGMENTATION = 0x2
43  };
44 private:
45  Uint32 senderRef;
46  Uint32 senderData;
47  Uint32 requestInfo;
48  Uint32 fragmentationType;
49  Uint32 noOfFragments;
50  Uint32 primaryTableId; // use same fragmentation as this table if not RNIL
51  Uint32 map_ptr_i;
52 };
53 
58  friend class Dbdih;
59 
63  friend class Dbdict;
64 
65  friend bool printCREATE_FRAGMENTATION_REF(FILE *,
66  const Uint32 *, Uint32, Uint16);
67 public:
68  STATIC_CONST( SignalLength = 3 );
69 
70  enum ErrorCode {
71  OK = 0
72  ,InvalidNodeGroup = 771
73  ,InvalidFragmentationType = 772
74  ,InvalidPrimaryTable = 749
75  };
76 
77 private:
78  Uint32 senderRef;
79  Uint32 senderData;
80  Uint32 errorCode;
81 };
82 
87  friend class Dbdih;
88 
92  friend class Dbdict;
93 
94  friend bool printCREATE_FRAGMENTATION_CONF(FILE *,
95  const Uint32 *, Uint32, Uint16);
96 public:
97  STATIC_CONST( SignalLength = 4 );
98  SECTION( FRAGMENTS = 0 );
99 
100 private:
101  Uint32 senderRef;
102  Uint32 senderData;
103  Uint32 noOfReplicas;
104  Uint32 noOfFragments;
105 };
106 
107 #endif