MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
CreateIndx.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/CreateIndx.hpp>
20 
21 bool
22 printCREATE_INDX_REQ(FILE* output, const Uint32* theData, Uint32 len, Uint16)
23 {
24  const CreateIndxReq* sig = (const CreateIndxReq*)theData;
25  fprintf(output, " clientRef: 0x%x", sig->clientRef);
26  fprintf(output, " clientData: %u", sig->clientData);
27  fprintf(output, "\n");
28  fprintf(output, " transId: 0x%x", sig->transId);
29  fprintf(output, " transKey: %u", sig->transKey);
30  fprintf(output, " requestInfo: 0x%x", sig->requestInfo);
31  fprintf(output, "\n");
32  fprintf(output, " tableId: %u", sig->tableId);
33  fprintf(output, " tableVersion: 0x%x", sig->tableVersion);
34  fprintf(output, " indexType: %u", sig->indexType);
35  fprintf(output, " online: %u", sig->online);
36  fprintf(output, "\n");
37  return true;
38 }
39 
40 bool
41 printCREATE_INDX_CONF(FILE* output, const Uint32* theData, Uint32 len, Uint16)
42 {
43  const CreateIndxConf* sig = (const CreateIndxConf*)theData;
44  fprintf(output, " senderRef: 0x%x", sig->senderRef);
45  fprintf(output, " clientData: %u", sig->clientData);
46  fprintf(output, " transId: 0x%x", sig->transId);
47  fprintf(output, "\n");
48  fprintf(output, " indexId: %u", sig->indexId);
49  fprintf(output, " indexVersion: 0x%x", sig->indexVersion);
50  fprintf(output, "\n");
51  return true;
52 }
53 
54 bool printCREATE_INDX_REF(FILE* output, const Uint32* theData, Uint32 len, Uint16)
55 {
56  const CreateIndxRef* sig = (const CreateIndxRef*)theData;
57  fprintf(output, " senderRef: 0x%x", sig->senderRef);
58  fprintf(output, " clientData: %u", sig->clientData);
59  fprintf(output, " transId: 0x%x", sig->transId);
60  fprintf(output, "\n");
61  fprintf(output, " errorCode: %u", sig->errorCode);
62  fprintf(output, " errorLine: %u", sig->errorLine);
63  fprintf(output, " errorNodeId: %u", sig->errorNodeId);
64  fprintf(output, " masterNodeId: %u", sig->masterNodeId);
65  fprintf(output, "\n");
66  return true;
67 }