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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
16
#ifndef UTIL_PREPARE_REQ_HPP
17
#define UTIL_PREPARE_REQ_HPP
19
#include "SignalData.hpp"
20
#include <SimpleProperties.hpp>
29
* UTIL_PREPARE_REQ, UTIL_PREPARE_CONF, UTIL_PREPARE_REF
33
* @class UtilPrepareReq
34
* @brief Prepare transaction in Util block
37
* - UTIL_PREPARE_REQ <NoOfOps> (<OperationType> <TableName> <AttrName>+)+
39
class UtilPrepareReq {
41
* Sender(s) / Receiver(s)
49
friend bool printUTIL_PREPARE_REQ(FILE * output,
50
const Uint32 * theData,
52
Uint16 receiverBlockNo);
55
enum OperationTypeValue {
65
NoOfOperations = 1, ///< No of operations in transaction
66
OperationType = 2, ///
67
TableName = 3, ///< String
68
AttributeName = 4, ///< String
74
STATIC_CONST( SignalLength = 2 );
75
STATIC_CONST( PROPERTIES_SECTION = 0 );
76
STATIC_CONST( NoOfSections = 1 );
81
Uint32 senderData; // MUST be no 1!
86
* @class UtilPrepareConf
89
* - UTIL_PREPARE_CONF <UtilPrepareId>
92
class UtilPrepareConf {
94
* Sender(s) / Receiver(s)
102
friend bool printUTIL_PREPARE_CONF(FILE * output,
103
const Uint32 * theData,
105
Uint16 receiverBlockNo);
108
STATIC_CONST( SignalLength = 2 );
113
Uint32 senderData; // MUST be no 1!
119
* @class UtilPrepareRef
125
class UtilPrepareRef {
127
* Sender(s) / Receiver(s)
135
friend bool printUTIL_PREPARE_REF(FILE * output,
136
const Uint32 * theData,
138
Uint16 receiverBlockNo);
143
PREPARE_SEIZE_ERROR = 1,
144
PREPARE_PAGES_SEIZE_ERROR = 2,
145
PREPARED_OPERATION_SEIZE_ERROR = 3,
146
DICT_TAB_INFO_ERROR = 4,
147
MISSING_PROPERTIES_SECTION = 5
150
STATIC_CONST( SignalLength = 2 );
155
Uint32 senderData; // MUST be no 1!