MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DropTable.cpp
1 /* Copyright (C) 2007 MySQL AB
2 
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.
6 
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.
11 
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 */
15 
16 #include <signaldata/DropTable.hpp>
17 #include <SignalLoggerManager.hpp>
18 
19 bool
20 printDROP_TABLE_REQ(FILE* output, const Uint32* theData, Uint32 len, Uint16 rbn)
21 {
22  const DropTableReq* sig = (const DropTableReq*)theData;
23  fprintf(output, " clientRef: 0x%x", sig->clientRef);
24  fprintf(output, " clientData: %u", sig->clientData);
25  fprintf(output, " transId: 0x%x", sig->transId);
26  fprintf(output, " transKey: %u", sig->transKey);
27  fprintf(output, "\n");
28  fprintf(output, " tableId: %u", sig->tableId);
29  fprintf(output, " tableVersion: 0x%x", sig->tableVersion);
30  fprintf(output, "\n");
31  return true;
32 }
33 
34 bool
35 printDROP_TABLE_CONF(FILE* output, const Uint32* theData, Uint32 len, Uint16 rbn)
36 {
37  const DropTableConf* sig = (const DropTableConf*)theData;
38  fprintf(output, " senderRef: 0%x", sig->senderRef);
39  fprintf(output, " clientData: %u", sig->clientData);
40  fprintf(output, " transId: 0x%x", sig->transId);
41  fprintf(output, "\n");
42  fprintf(output, " tableId: %u", sig->tableId);
43  fprintf(output, " tableVersion: 0x%x", sig->tableVersion);
44  fprintf(output, "\n");
45  return true;
46 }
47 
48 bool
49 printDROP_TABLE_REF(FILE* output, const Uint32* theData, Uint32 len, Uint16 rbn)
50 {
51  const DropTableRef* sig = (const DropTableRef*)theData;
52  fprintf(output, " senderRef: 0x%x", sig->senderRef);
53  fprintf(output, " clientData: %u", sig->clientData);
54  fprintf(output, " transId: 0x%x", sig->transId);
55  fprintf(output, "\n");
56  fprintf(output, " tableId: %u", sig->tableId);
57  fprintf(output, " tableVersion: 0x%x", sig->tableVersion);
58  fprintf(output, "\n");
59  fprintf(output, " errorCode: %u", sig->errorCode);
60  fprintf(output, " errorLine: %u", sig->errorLine);
61  fprintf(output, " errorNodeId: %u", sig->errorNodeId);
62  fprintf(output, " masterNodeId: %u", sig->masterNodeId);
63  fprintf(output, "\n");
64  return true;
65 }