MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SchemaTrans.cpp
1 /* Copyright (C) 2007 MySQL AB, 2008 Sun Microsystems, Inc.
2  All rights reserved. Use is subject to license terms.
3 
4  This program is free software; you can redistribute it and/or modify
5  it under the terms of the GNU General Public License as published by
6  the Free Software Foundation; version 2 of the License.
7 
8  This program is distributed in the hope that it will be useful,
9  but WITHOUT ANY WARRANTY; without even the implied warranty of
10  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11  GNU General Public License for more details.
12 
13  You should have received a copy of the GNU General Public License
14  along with this program; if not, write to the Free Software
15  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA */
16 
17 #include <signaldata/SchemaTrans.hpp>
18 #include <signaldata/DictSignal.hpp>
19 
20 bool
21 printSCHEMA_TRANS_BEGIN_REQ(FILE* output, const Uint32* theData, Uint32 len, Uint16)
22 {
23  const SchemaTransBeginReq* sig = (const SchemaTransBeginReq*)theData;
24  fprintf(output, " clientRef: 0x%x", sig->clientRef);
25  fprintf(output, " transId: 0x%x", sig->transId);
26  fprintf(output, " requestInfo: 0x%x", sig->requestInfo);
27  fprintf(output, "\n");
28  return true;
29 }
30 
31 bool
32 printSCHEMA_TRANS_BEGIN_CONF(FILE* output, const Uint32* theData, Uint32 len, Uint16)
33 {
34  const SchemaTransBeginConf* sig = (const SchemaTransBeginConf*)theData;
35  fprintf(output, " senderRef: 0x%x", sig->senderRef);
36  fprintf(output, " transId: 0x%x", sig->transId);
37  fprintf(output, " transKey: %u", sig->transKey);
38  fprintf(output, "\n");
39  return true;
40 }
41 
42 bool
43 printSCHEMA_TRANS_BEGIN_REF(FILE* output, const Uint32* theData, Uint32 len, Uint16)
44 {
45  const SchemaTransBeginRef* sig = (const SchemaTransBeginRef*)theData;
46  fprintf(output, " senderRef: 0x%x", sig->senderRef);
47  fprintf(output, " transId: 0x%x", sig->transId);
48  fprintf(output, "\n");
49  fprintf(output, " errorCode: %u", sig->errorCode);
50  fprintf(output, " errorLine: %u", sig->errorLine);
51  fprintf(output, " errorNodeId: %u", sig->errorNodeId);
52  fprintf(output, " masterNodeId: %u", sig->masterNodeId);
53  fprintf(output, "\n");
54  return true;
55 }
56 
57 bool
58 printSCHEMA_TRANS_END_REQ(FILE* output, const Uint32* theData, Uint32 len, Uint16)
59 {
60  const SchemaTransEndReq* sig = (const SchemaTransEndReq*)theData;
61  fprintf(output, " clientRef: 0x%x", sig->clientRef);
62  fprintf(output, " transId: 0x%x", sig->transId);
63  fprintf(output, " requestInfo: 0x%x", sig->requestInfo);
64  fprintf(output, "\n");
65  fprintf(output, " transKey: %u", sig->transKey);
66  fprintf(output, " flags: 0x%x", sig->flags);
67  fprintf(output, "\n");
68  return true;
69 }
70 
71 bool
72 printSCHEMA_TRANS_END_CONF(FILE* output, const Uint32* theData, Uint32 len, Uint16)
73 {
74  const SchemaTransEndConf* sig = (const SchemaTransEndConf*)theData;
75  fprintf(output, " senderRef: 0x%x", sig->senderRef);
76  fprintf(output, " transId: 0x%x", sig->transId);
77  fprintf(output, "\n");
78  return true;
79 }
80 
81 bool
82 printSCHEMA_TRANS_END_REF(FILE* output, const Uint32* theData, Uint32 len, Uint16)
83 {
84  const SchemaTransEndRef* sig = (const SchemaTransEndRef*)theData;
85  fprintf(output, " senderRef: 0x%x", sig->senderRef);
86  fprintf(output, " transId: 0x%x", sig->transId);
87  fprintf(output, "\n");
88  fprintf(output, " errorCode: %u", sig->errorCode);
89  fprintf(output, " errorLine: %u", sig->errorLine);
90  fprintf(output, " errorNodeId: %u", sig->errorNodeId);
91  fprintf(output, " masterNodeId: %u", sig->masterNodeId);
92  fprintf(output, "\n");
93  return true;
94 }
95 
96 bool
97 printSCHEMA_TRANS_END_REP(FILE* output, const Uint32* theData, Uint32 len, Uint16)
98 {
99  const SchemaTransEndRep* sig = (const SchemaTransEndRep*)theData;
100  fprintf(output, " senderRef: 0x%x", sig->senderRef);
101  fprintf(output, " transId: 0x%x", sig->transId);
102  fprintf(output, "\n");
103  fprintf(output, " errorCode: %u", sig->errorCode);
104  fprintf(output, " errorLine: %u", sig->errorLine);
105  fprintf(output, " errorNodeId: %u", sig->errorNodeId);
106  fprintf(output, " masterNodeId: %u", sig->masterNodeId);
107  fprintf(output, "\n");
108  return true;
109 }
110 
111