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_DELETE_HPP
17
#define UTIL_DELETE_HPP
19
#include "SignalData.hpp"
20
#include <SimpleProperties.hpp>
23
* UTIL_DELETE_REQ, UTIL_DELETE_CONF, UTIL_DELETE_REF
27
* @class UtilDeleteReq
28
* @brief Delete transaction in Util block
31
* - UTIL_DELETE_REQ <prepareId> <ListOfAttributeHeaderValuePairs>
35
/** Sender(s) / Receiver(s) */
39
friend bool printUTIL_DELETE_REQ(FILE * output, const Uint32 * theData,
40
Uint32 len, Uint16 receiverBlockNo);
42
STATIC_CONST( DataLength = 22 );
43
STATIC_CONST( HeaderLength = 3 );
47
Uint32 prepareId; // Which prepared transaction to execute
48
Uint32 totalDataLen; // Total length of attrData (including AttributeHeaders
49
// and possibly spanning over multiple signals)
52
* Length in this = signal->length() - 3
53
* Sender block ref = signal->senderBlockRef()
56
Uint32 attrData[DataLength];
62
* @class UtilDeleteConf
65
* - UTIL_PREPARE_CONF <UtilPrepareId>
68
class UtilDeleteConf {
70
* Sender(s) / Receiver(s)
77
friend bool printUTIL_DELETE_CONF(FILE * output,
78
const Uint32 * theData,
80
Uint16 receiverBlockNo);
82
STATIC_CONST( SignalLength = 1 );
85
Uint32 senderData; ///< The client data provided by the client sending
91
* @class UtilDeleteRef
99
* Sender(s) / Receiver(s)
106
friend bool printUTIL_DELETE_REF(FILE * output,
107
const Uint32 * theData,
109
Uint16 receiverBlockNo);
111
STATIC_CONST( SignalLength = 2 );
115
Uint32 errorCode; ///< See UtilExecuteRef::errorCode