1 /* Copyright (c) 2007, 2021, Oracle and/or its affiliates.
2    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, version 2.0,
6    as published by the Free Software Foundation.
7 
8    This program is also distributed with certain software (including
9    but not limited to OpenSSL) that is licensed under separate terms,
10    as designated in a particular file or component or in included license
11    documentation.  The authors of MySQL hereby grant you an additional
12    permission to link the program and your derivative works with the
13    separately licensed software that they have included with MySQL.
14 
15    This program is distributed in the hope that it will be useful,
16    but WITHOUT ANY WARRANTY; without even the implied warranty of
17    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18    GNU General Public License, version 2.0, for more details.
19 
20    You should have received a copy of the GNU General Public License
21    along with this program; if not, write to the Free Software
22    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA */
23 
24 #include <signaldata/BuildIndxImpl.hpp>
25 
26 bool
printBUILD_INDX_IMPL_REQ(FILE * output,const Uint32 * theData,Uint32 len,Uint16 rbn)27 printBUILD_INDX_IMPL_REQ(FILE* output, const Uint32* theData, Uint32 len, Uint16 rbn)
28 {
29   const BuildIndxImplReq* sig = (const BuildIndxImplReq*)theData;
30   fprintf(output, " senderRef: 0x%x", sig->senderRef);
31   fprintf(output, " senderData: %u", sig->senderData);
32   fprintf(output, " requestType: %u", sig->requestType);
33   fprintf(output, " transId: 0x%x", sig->transId);
34   fprintf(output, "\n");
35   fprintf(output, " buildId: %u", sig->buildId);
36   fprintf(output, " buildKey: %u", sig->buildKey);
37   fprintf(output, "\n");
38   fprintf(output, " tableId: %u", sig->tableId);
39   fprintf(output, " indexId: %u", sig->indexId);
40   fprintf(output, " indexType: %u", sig->indexType);
41   fprintf(output, " parallelism: %u", sig->parallelism);
42   fprintf(output, "\n");
43   return true;
44 }
45 
46 bool
printBUILD_INDX_IMPL_CONF(FILE * output,const Uint32 * theData,Uint32 len,Uint16 rbn)47 printBUILD_INDX_IMPL_CONF(FILE* output, const Uint32* theData, Uint32 len, Uint16 rbn)
48 {
49   const BuildIndxImplConf* sig = (const BuildIndxImplConf*)theData;
50   fprintf(output, " senderRef: 0x%x", sig->senderRef);
51   fprintf(output, " senderData: %u", sig->senderData);
52   fprintf(output, "\n");
53   return true;
54 }
55 
printBUILD_INDX_IMPL_REF(FILE * output,const Uint32 * theData,Uint32 len,Uint16 rbn)56 bool printBUILD_INDX_IMPL_REF(FILE* output, const Uint32* theData, Uint32 len, Uint16 rbn)
57 {
58   const BuildIndxImplRef* sig = (const BuildIndxImplRef*)theData;
59   fprintf(output, " senderRef: 0x%x", sig->senderRef);
60   fprintf(output, " senderData: %u", sig->senderData);
61   fprintf(output, "\n");
62   fprintf(output, " errorCode: %u", sig->errorCode);
63   fprintf(output, " errorLine: %u", sig->errorLine);
64   fprintf(output, " errorNodeId: %u", sig->errorNodeId);
65   fprintf(output, " masterNodeId: %u", sig->masterNodeId);
66   fprintf(output, "\n");
67   return true;
68 }
69