mySQL 5.0.11 sources for tomato
[tomato.git] / release / src / router / mysql / storage / ndb / include / kernel / signaldata / Extent.hpp
blobfd7421fe113b586cd4b86ebd880fc394d19be5e1
1 /* Copyright (c) 2003, 2005-2007 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 NDB_EXTENT_HPP
17 #define NDB_EXTENT_HPP
19 #include "SignalData.hpp"
21 struct AllocExtentReq {
22 /**
23 * Sender(s) / Reciver(s)
26 /**
27 * For printing
30 STATIC_CONST( SignalLength = 3 );
32 enum ErrorCode {
33 UnmappedExtentPageIsNotImplemented = 1,
34 NoExtentAvailable = 1601,
35 NoDatafile = 1602
38 union
40 struct
42 Uint32 tablespace_id;
43 Uint32 table_id;
44 Uint32 fragment_id;
45 } request;
46 struct
48 Uint32 errorCode;
49 Local_key page_id;
50 Uint32 page_count;
51 } reply;
55 struct FreeExtentReq {
56 /**
57 * Sender(s) / Reciver(s)
60 /**
61 * For printing
64 STATIC_CONST( SignalLength = 4 );
66 enum ErrorCode {
67 UnmappedExtentPageIsNotImplemented = 1
70 union
72 struct
74 Local_key key;
75 Uint32 table_id;
76 Uint32 tablespace_id;
77 Uint32 lsn_hi;
78 Uint32 lsn_lo;
79 } request;
80 struct
82 Uint32 errorCode;
83 } reply;
87 struct AllocPageReq {
88 /**
89 * Sender(s) / Reciver(s)
92 /**
93 * For printing
96 STATIC_CONST( SignalLength = 3 );
98 enum ErrorCode {
99 UnmappedExtentPageIsNotImplemented = 1,
100 NoPageFree= 2
103 Local_key key; // in out
104 Uint32 bits; // in out
105 union
107 struct
109 Uint32 table_id;
110 Uint32 fragment_id;
111 Uint32 tablespace_id;
112 } request;
113 struct
115 Uint32 errorCode;
116 } reply;
121 #endif