CntrStart.cpp
上传用户:romrleung
上传日期:2022-05-23
资源大小:18897k
文件大小:1k
- #include <signaldata/CntrStart.hpp>
- bool
- printCNTR_START_REQ(FILE * output, const Uint32 * theData,
- Uint32 len, Uint16 receiverBlockNo) {
- const CntrStartReq * const sig = (CntrStartReq *)theData;
- fprintf(output, " nodeId: %xn", sig->nodeId);
- fprintf(output, " startType: %xn", sig->startType);
- fprintf(output, " lastGci: %xn", sig->lastGci);
- return true;
- }
- bool
- printCNTR_START_REF(FILE * output, const Uint32 * theData,
- Uint32 len, Uint16 receiverBlockNo) {
- const CntrStartRef * const sig = (CntrStartRef *)theData;
- fprintf(output, " errorCode: %xn", sig->errorCode);
- fprintf(output, " masterNodeId: %xn", sig->masterNodeId);
- return true;
- }
- bool
- printCNTR_START_CONF(FILE * output, const Uint32 * theData,
- Uint32 len, Uint16 receiverBlockNo) {
- const CntrStartConf * const sig = (CntrStartConf *)theData;
- fprintf(output, " startType: %xn", sig->startType);
- fprintf(output, " startGci: %xn", sig->startGci);
- fprintf(output, " masterNodeId: %xn", sig->masterNodeId);
- fprintf(output, " noStartNodes: %xn", sig->noStartNodes);
- char buf[32*NdbNodeBitmask::Size+1];
- fprintf(output, " startedNodes: %sn",
- BitmaskImpl::getText(NdbNodeBitmask::Size, sig->startedNodes, buf));
- fprintf(output, " startingNodes: %sn",
- BitmaskImpl::getText(NdbNodeBitmask::Size, sig->startingNodes, buf));
- return true;
- }