1
/* Copyright (C) 2003 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 CREATE_FILEGROUP_IMPL_HPP
17
#define CREATE_FILEGROUP_IMPL_HPP
19
#include "SignalData.hpp"
21
struct CreateFilegroupImplReq {
23
* Sender(s) / Reciver(s)
32
friend bool printCREATE_FILEGROUP_IMPL_REQ(FILE*, const Uint32*, Uint32, Uint16);
34
STATIC_CONST( TablespaceLength = 6 );
35
STATIC_CONST( LogfileGroupLength = 5 );
40
Uint32 filegroup_version;
45
Uint32 logfile_group_id;
48
Uint32 buffer_size; // In pages
53
struct CreateFilegroupImplRef {
64
friend bool printCREATE_FILEGROUP_IMPL_REF(FILE*, const Uint32*, Uint32, Uint16);
66
STATIC_CONST( SignalLength = 3 );
70
FilegroupAlreadyExists = 1502,
71
OutOfFilegroupRecords = 1503,
72
OutOfLogBufferMemory = 1504,
73
OneLogfileGroupLimit = 1514
81
struct CreateFilegroupImplConf {
92
friend bool printCREATE_FILEGROUP_IMPL_CONF(FILE*, const Uint32*, Uint32, Uint16);
94
STATIC_CONST( SignalLength = 2 );
100
struct CreateFileImplReq {
102
* Sender(s) / Reciver(s)
111
friend bool printCREATE_FILE_IMPL_REQ(FILE*, const Uint32*, Uint32, Uint16);
113
STATIC_CONST( DatafileLength = 9 );
114
STATIC_CONST( UndofileLength = 8 );
115
STATIC_CONST( CommitLength = 6 );
116
STATIC_CONST( AbortLength = 6 );
117
SECTION( FILENAME = 0 );
133
Uint32 filegroup_version;
144
struct CreateFileImplRef {
152
friend bool printCREATE_FILE_IMPL_REF(FILE*, const Uint32*, Uint32, Uint16);
154
STATIC_CONST( SignalLength = 5 );
158
InvalidFilegroup = 1505,
159
InvalidFilegroupVersion = 1506,
160
FileNoAlreadyExists = 1507,
161
OutOfFileRecords = 1508,
163
InvalidFileMetadata = 1510,
165
FileReadError = 1512,
166
FilegroupNotOnline = 1513,
167
FileSizeTooLarge = 1515
177
struct CreateFileImplConf {
186
friend bool printCREATE_FILE_IMPL_CONF(FILE*, const Uint32*, Uint32, Uint16);
188
STATIC_CONST( SignalLength = 4 );