MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
BuildIndx.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/BuildIndx.hpp>
17 
18 bool
19 printBUILD_INDX_REQ(FILE* output, const Uint32* theData, Uint32 len, Uint16 rbn)
20 {
21  const BuildIndxReq* sig = (const BuildIndxReq*)theData;
22  fprintf(output, " clientRef: 0x%x", sig->clientRef);
23  fprintf(output, " clientData: %u", sig->clientData);
24  fprintf(output, "\n");
25  fprintf(output, " transId: 0x%x", sig->transId);
26  fprintf(output, " transKey: %u", sig->transKey);
27  fprintf(output, " requestInfo: 0x%x", sig->requestInfo);
28  fprintf(output, "\n");
29  fprintf(output, " buildId: %u", sig->buildId);
30  fprintf(output, " buildKey: %u", sig->buildKey);
31  fprintf(output, "\n");
32  fprintf(output, " tableId: %u", sig->tableId);
33  fprintf(output, " indexId: %u", sig->indexId);
34  fprintf(output, " indexType: %u", sig->indexType);
35  fprintf(output, " parallelism: %u", sig->parallelism);
36  fprintf(output, "\n");
37  return true;
38 }
39 
40 bool
41 printBUILD_INDX_CONF(FILE* output, const Uint32* theData, Uint32 len, Uint16 rbn)
42 {
43  const BuildIndxConf* sig = (const BuildIndxConf*)theData;
44  fprintf(output, " senderRef: 0x%x", sig->senderRef);
45  fprintf(output, " clientData: %u", sig->clientData);
46  fprintf(output, "\n");
47  fprintf(output, " transId: 0x%x", sig->transId);
48  fprintf(output, "\n");
49  fprintf(output, " tableId: %u", sig->tableId);
50  fprintf(output, " indexId: %u", sig->indexId);
51  fprintf(output, " indexType: %u", sig->indexType);
52  fprintf(output, "\n");
53  return true;
54 }
55 
56 bool printBUILD_INDX_REF(FILE* output, const Uint32* theData, Uint32 len, Uint16 rbn)
57 {
58  const BuildIndxRef* sig = (const BuildIndxRef*)theData;
59  fprintf(output, " senderRef: 0x%x", sig->senderRef);
60  fprintf(output, " clientData: %u", sig->clientData);
61  fprintf(output, "\n");
62  fprintf(output, " transId: 0x%x", sig->transId);
63  fprintf(output, "\n");
64  fprintf(output, " tableId: %u", sig->tableId);
65  fprintf(output, " indexType: %u", sig->indexType);
66  fprintf(output, " indexId: %u", sig->indexId);
67  fprintf(output, "\n");
68  fprintf(output, " errorCode: %u", sig->errorCode);
69  fprintf(output, " errorLine: %u", sig->errorLine);
70  fprintf(output, " errorNodeId: %u", sig->errorNodeId);
71  fprintf(output, " masterNodeId: %u", sig->masterNodeId);
72  fprintf(output, "\n");
73  return true;
74 }