MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DropIndx.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/DropIndx.hpp>
20 
21 bool
22 printDROP_INDX_REQ(FILE* output, const Uint32* theData, Uint32 len, Uint16)
23 {
24  const DropIndxReq* sig = (const DropIndxReq*)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, " indexId: %u", sig->indexId);
33  fprintf(output, " indexVersion: 0x%x", sig->indexVersion);
34  fprintf(output, "\n");
35  return true;
36 }
37 
38 bool
39 printDROP_INDX_CONF(FILE* output, const Uint32* theData, Uint32 len, Uint16)
40 {
41  const DropIndxConf* sig = (const DropIndxConf*)theData;
42  fprintf(output, " senderRef: 0x%x", sig->senderRef);
43  fprintf(output, " clientData: %u", sig->clientData);
44  fprintf(output, " transId: 0x%x", sig->transId);
45  fprintf(output, "\n");
46  fprintf(output, " indexId: %u", sig->indexId);
47  fprintf(output, " indexVersion: 0x%x", sig->indexVersion);
48  fprintf(output, "\n");
49  return true;
50 }
51 
52 bool
53 printDROP_INDX_REF(FILE* output, const Uint32* theData, Uint32 len, Uint16)
54 {
55  const DropIndxRef* sig = (const DropIndxRef*)theData;
56  fprintf(output, " senderRef: 0x%x", sig->senderRef);
57  fprintf(output, " clientData: %u", sig->clientData);
58  fprintf(output, " transId: 0x%x", sig->transId);
59  fprintf(output, "\n");
60  fprintf(output, " indexId: %u", sig->indexId);
61  fprintf(output, " indexVersion: 0x%x", sig->indexVersion);
62  fprintf(output, "\n");
63  fprintf(output, " errorCode: %u", sig->errorCode);
64  fprintf(output, " errorLine: %u", sig->errorLine);
65  fprintf(output, " errorNodeId: %u", sig->errorNodeId);
66  fprintf(output, " masterNodeId: %u", sig->masterNodeId);
67  fprintf(output, "\n");
68  return true;
69 }