ReadNodesConf.cpp
上传用户:romrleung
上传日期:2022-05-23
资源大小:18897k
文件大小:1k
- #include <signaldata/ReadNodesConf.hpp>
- bool
- printREAD_NODES_CONF(FILE * output, const Uint32 * theData,
- Uint32 len, Uint16 receiverBlockNo) {
- const ReadNodesConf * const sig = (ReadNodesConf *)theData;
- fprintf(output, " noOfNodes: %xn", sig->noOfNodes);
- fprintf(output, " ndynamicId: %xn", sig->ndynamicId);
- fprintf(output, " masterNodeId: %xn", sig->masterNodeId);
- char buf[32*NdbNodeBitmask::Size+1];
- fprintf(output, " allNodes(defined): %sn",
- BitmaskImpl::getText(NdbNodeBitmask::Size, sig->allNodes, buf));
- fprintf(output, " inactiveNodes: %sn",
- BitmaskImpl::getText(NdbNodeBitmask::Size, sig->inactiveNodes, buf));
- fprintf(output, " clusterNodes: %sn",
- BitmaskImpl::getText(NdbNodeBitmask::Size, sig->clusterNodes, buf));
- fprintf(output, " startedNodes: %sn",
- BitmaskImpl::getText(NdbNodeBitmask::Size, sig->startedNodes, buf));
- fprintf(output, " startingNodes: %sn",
- BitmaskImpl::getText(NdbNodeBitmask::Size, sig->startingNodes, buf));
- return true;
- }