MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AlterIndx.cpp
1 /*
2  Copyright (C) 2003, 2005-2007 MySQL AB
3  All rights reserved. Use is subject to license terms.
4 
5  This program is free software; you can redistribute it and/or modify
6  it under the terms of the GNU General Public License as published by
7  the Free Software Foundation; version 2 of the License.
8 
9  This program is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  GNU General Public License for more details.
13 
14  You should have received a copy of the GNU General Public License
15  along with this program; if not, write to the Free Software
16  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
17 */
18 
19 #include <signaldata/AlterIndx.hpp>
20 #include <signaldata/DictSignal.hpp>
21 
22 bool
23 printALTER_INDX_REQ(FILE* output, const Uint32* theData, Uint32 len, Uint16)
24 {
25  const AlterIndxReq* sig = (const AlterIndxReq*)theData;
26  fprintf(output, " clientRef: 0x%x", sig->clientRef);
27  fprintf(output, " clientData: %u", sig->clientData);
28  fprintf(output, "\n");
29  fprintf(output, " transId: 0x%x", sig->transId);
30  fprintf(output, " transKey: %u", sig->transKey);
31  fprintf(output, "\n");
32  fprintf(output, " requestInfo: type: %u extra: %u flags: [%s]",
33  DictSignal::getRequestType(sig->requestInfo),
34  DictSignal::getRequestExtra(sig->requestInfo),
35  DictSignal::getRequestFlagsText(sig->requestInfo));
36  fprintf(output, "\n");
37  fprintf(output, " indexId: %u", sig->indexId);
38  fprintf(output, " indexVersion: 0x%x", sig->indexVersion);
39  fprintf(output, "\n");
40  return true;
41 }
42 
43 bool
44 printALTER_INDX_CONF(FILE* output, const Uint32* theData, Uint32 len, Uint16)
45 {
46  const AlterIndxConf* sig = (const AlterIndxConf*)theData;
47  fprintf(output, " senderRef: 0x%x", sig->senderRef);
48  fprintf(output, " clientData: %u", sig->clientData);
49  fprintf(output, "\n");
50  fprintf(output, " transId: 0x%x", sig->transId);
51  fprintf(output, "\n");
52  fprintf(output, " indexId: %u", sig->indexId);
53  fprintf(output, " indexVersion: 0x%x", sig->indexVersion);
54  fprintf(output, "\n");
55  return true;
56 }
57 
58 bool
59 printALTER_INDX_REF(FILE* output, const Uint32* theData, Uint32 len, Uint16)
60 {
61  const AlterIndxRef* sig = (const AlterIndxRef*)theData;
62  fprintf(output, " senderRef: 0x%x", sig->senderRef);
63  fprintf(output, " clientData: %u", sig->clientData);
64  fprintf(output, "\n");
65  fprintf(output, " transId: 0x%x", sig->transId);
66  fprintf(output, "\n");
67  fprintf(output, " indexId: %u", sig->indexId);
68  fprintf(output, " indexVersion: 0x%x", sig->indexVersion);
69  fprintf(output, "\n");
70  fprintf(output, " errorCode: %u", sig->errorCode);
71  fprintf(output, " errorLine: %u", sig->errorLine);
72  fprintf(output, " errorNodeId: %u", sig->errorNodeId);
73  fprintf(output, " masterNodeId: %u", sig->masterNodeId);
74  fprintf(output, "\n");
75  return true;
76 }