MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Extent.hpp
1 /*
2  Copyright (C) 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 NDB_EXTENT_HPP
20 #define NDB_EXTENT_HPP
21 
22 #include "SignalData.hpp"
23 
33  STATIC_CONST( SignalLength = 3 );
34 
35  enum ErrorCode {
36  UnmappedExtentPageIsNotImplemented = 1,
37  NoExtentAvailable = 1601,
38  NoDatafile = 1602
39  };
40 
41  union
42  {
43  struct
44  {
45  Uint32 tablespace_id;
46  Uint32 table_id;
47  Uint32 fragment_id;
48  } request;
49  struct
50  {
51  Uint32 errorCode;
52  Local_key page_id;
53  Uint32 page_count;
54  } reply;
55  };
56 };
57 
58 struct FreeExtentReq {
67  STATIC_CONST( SignalLength = 4 );
68 
69  enum ErrorCode {
70  UnmappedExtentPageIsNotImplemented = 1
71  };
72 
73  union
74  {
75  struct
76  {
77  Local_key key;
78  Uint32 table_id;
79  Uint32 tablespace_id;
80  Uint32 lsn_hi;
81  Uint32 lsn_lo;
82  } request;
83  struct
84  {
85  Uint32 errorCode;
86  } reply;
87  };
88 };
89 
90 struct AllocPageReq {
99  STATIC_CONST( SignalLength = 3 );
100 
101  enum ErrorCode {
102  UnmappedExtentPageIsNotImplemented = 1,
103  NoPageFree= 2
104  };
105 
106  Local_key key; // in out
107  Uint32 bits; // in out
108  union
109  {
110  struct
111  {
112  Uint32 table_id;
113  Uint32 fragment_id;
114  Uint32 tablespace_id;
115  } request;
116  struct
117  {
118  Uint32 errorCode;
119  } reply;
120  };
121 };
122 
123 
124 #endif