17 #include <signaldata/SchemaTransImpl.hpp>
18 #include <signaldata/DictSignal.hpp>
19 #include <signaldata/SignalData.hpp>
20 #include <SignalLoggerManager.hpp>
21 #include <DebuggerNames.hpp>
24 printSCHEMA_TRANS_IMPL_REQ(FILE* output,
const Uint32* theData,
25 Uint32 len, Uint16 rbn)
31 const Uint32 requestInfo = sig->requestInfo;
32 const Uint32 rt = DictSignal::getRequestType(requestInfo);
33 Uint32 opExtra = DictSignal::getRequestExtra(requestInfo);
41 fprintf(output,
" senderRef: 0x%x", sig->senderRef);
42 fprintf(output,
" transKey: %u", sig->transKey);
43 fprintf(output,
" opKey: %u", sig->opKey);
44 fprintf(output,
"\n");
51 fprintf(output,
" requestInfo: 0x%x", requestInfo);
53 case(SchemaTransImplReq::RT_START):
54 fprintf(output,
" RequestType: RT_START");
56 case(SchemaTransImplReq::RT_PARSE):
57 fprintf(output,
" RequestType: RT_PARSE");
59 case(SchemaTransImplReq::RT_FLUSH_PREPARE):
60 fprintf(output,
" RequestType: RT_FLUSH_PREPARE");
62 case(SchemaTransImplReq::RT_PREPARE):
63 fprintf(output,
" RequestType: RT_PREPARE");
65 case(SchemaTransImplReq::RT_ABORT_PARSE):
66 fprintf(output,
" RequestType: RT_ABORT_PARSE");
68 case(SchemaTransImplReq::RT_ABORT_PREPARE):
69 fprintf(output,
" RequestType: RT_ABORT_PREPARE");
71 case(SchemaTransImplReq::RT_FLUSH_COMMIT):
72 fprintf(output,
" RequestType: RT_FLUSH_COMMIT");
74 case(SchemaTransImplReq::RT_COMMIT):
75 fprintf(output,
" RequestType: RT_COMMIT");
77 case(SchemaTransImplReq::RT_FLUSH_COMPLETE):
78 fprintf(output,
" RequestType: RT_FLUSH_COMPLETE");
80 case(SchemaTransImplReq::RT_COMPLETE):
81 fprintf(output,
" RequestType: RT_COMPLETE");
83 case(SchemaTransImplReq::RT_END):
84 fprintf(output,
" RequestType: RT_END");
87 fprintf(output,
" opExtra: %u", opExtra);
88 fprintf(output,
" requestFlags: [%s]",
89 DictSignal::getRequestFlagsText(requestInfo));
90 fprintf(output,
"\n");
98 if (len == SchemaTransImplReq::SignalLength)
99 fprintf(output,
" clientRef: 0x%x", sig->start.clientRef);
100 fprintf(output,
" transId: 0x%x", sig->transId);
101 fprintf(output,
"\n");
102 const Uint32 fixed_len = SchemaTransImplReq::SignalLength;
103 if (len > fixed_len) {
104 Uint32 gsn = sig->parse.gsn;
105 fprintf(output,
"piggy-backed: %u %s\n", gsn, getSignalName(gsn));
106 const Uint32* pb_data = &theData[fixed_len];
107 const Uint32 pb_len = len - fixed_len;
110 case GSN_SCHEMA_TRANS_BEGIN_REQ:
111 printSCHEMA_TRANS_BEGIN_REQ(output, pb_data, pb_len, rbn);
113 case GSN_CREATE_TAB_REQ:
114 printCREATE_TAB_REQ(output, pb_data, pb_len, rbn);
116 case GSN_DROP_TAB_REQ:
117 printDROP_TAB_REQ(output, pb_data, pb_len, rbn);
119 case GSN_ALTER_TAB_REQ:
120 printALTER_TAB_REQ(output, pb_data, pb_len, rbn);
122 case GSN_CREATE_TRIG_IMPL_REQ:
123 printCREATE_TRIG_IMPL_REQ(output, pb_data, pb_len, rbn);
125 case GSN_DROP_TRIG_IMPL_REQ:
126 printDROP_TRIG_IMPL_REQ(output, pb_data, pb_len, rbn);
128 case GSN_CREATE_INDX_IMPL_REQ:
129 printCREATE_INDX_IMPL_REQ(output, pb_data, pb_len, rbn);
131 case GSN_DROP_INDX_IMPL_REQ:
132 printDROP_INDX_IMPL_REQ(output, pb_data, pb_len, rbn);
134 case GSN_ALTER_INDX_IMPL_REQ:
135 printALTER_INDX_IMPL_REQ(output, pb_data, pb_len, rbn);
137 case GSN_BUILD_INDX_IMPL_REQ:
138 printBUILD_INDX_IMPL_REQ(output, pb_data, pb_len, rbn);
140 case GSN_INDEX_STAT_IMPL_REQ:
141 printINDEX_STAT_IMPL_REQ(output, pb_data, pb_len, rbn);
146 for (i = 0; i < len - fixed_len; i++) {
147 if (i > 0 && i % 7 == 0)
148 fprintf(output,
"\n");
149 fprintf(output,
" H'%08x", theData[fixed_len + i]);
151 fprintf(output,
"\n");
160 printSCHEMA_TRANS_IMPL_CONF(FILE* output,
const Uint32* theData, Uint32 len, Uint16 rbn)
163 fprintf(output,
" senderRef: 0x%x", sig->senderRef);
164 fprintf(output,
" transKey: %u", sig->transKey);
165 fprintf(output,
"\n");
170 printSCHEMA_TRANS_IMPL_REF(FILE* output,
const Uint32* theData, Uint32 len, Uint16 rbn)
173 fprintf(output,
" senderRef: 0x%x", sig->senderRef);
174 fprintf(output,
" transKey: %u", sig->transKey);
175 fprintf(output,
"\n");
176 fprintf(output,
" errorCode: %u", sig->errorCode);
177 fprintf(output,
" errorLine: %u", sig->errorLine);
178 fprintf(output,
"\n");