21 #include <BlockNumbers.h>
22 #include <signaldata/ScanTab.hpp>
23 #include <signaldata/ScanFrag.hpp>
26 printSCAN_FRAGREQ(FILE * output,
const Uint32 * theData,
27 Uint32 len, Uint16 receiverBlockNo) {
29 fprintf(output,
" senderData: 0x%x\n", sig->senderData);
30 fprintf(output,
" resultRef: 0x%x\n", sig->resultRef);
31 fprintf(output,
" savePointId: %u\n", sig->savePointId);
33 fprintf(output,
" flags: ");
34 if (ScanFragReq::getLockMode(sig->requestInfo))
36 if (ScanFragReq::getHoldLockFlag(sig->requestInfo))
38 if (ScanFragReq::getKeyinfoFlag(sig->requestInfo))
40 if (ScanFragReq::getReadCommittedFlag(sig->requestInfo))
42 if (ScanFragReq::getRangeScanFlag(sig->requestInfo))
44 if (ScanFragReq::getDescendingFlag(sig->requestInfo))
45 fprintf(output,
"(desc)");
46 if (ScanFragReq::getTupScanFlag(sig->requestInfo))
48 if (ScanFragReq::getNoDiskFlag(sig->requestInfo))
49 fprintf(output,
"(nodisk)");
50 fprintf(output,
" attrLen: %u",
51 ScanFragReq::getAttrLen(sig->requestInfo));
52 fprintf(output,
" reorg: %u",
53 ScanFragReq::getReorgFlag(sig->requestInfo));
54 fprintf(output,
" corr: %u",
55 ScanFragReq::getCorrFactorFlag(sig->requestInfo));
56 fprintf(output,
" stat: %u",
57 ScanFragReq::getStatScanFlag(sig->requestInfo));
58 fprintf(output,
"\n");
60 fprintf(output,
" tableId: %u\n", sig->tableId);
61 fprintf(output,
" fragmentNo: %u\n", sig->fragmentNoKeyLen & 0xFFFF);
62 fprintf(output,
" keyLen: %u\n", sig->fragmentNoKeyLen >> 16);
63 fprintf(output,
" schemaVersion: 0x%x\n", sig->schemaVersion);
64 fprintf(output,
" transId1: 0x%x\n", sig->transId1);
65 fprintf(output,
" transId2: 0x%x\n", sig->transId2);
66 fprintf(output,
" clientOpPtr: 0x%x\n", sig->clientOpPtr);
67 fprintf(output,
" batch_size_rows: %u\n", sig->batch_size_rows);
68 fprintf(output,
" batch_size_bytes: %u\n", sig->batch_size_bytes);
70 if (ScanFragReq::getCorrFactorFlag(sig->requestInfo))
72 fprintf(output,
" corrFactorLo: 0x%x\n", sig->variableData[0]);
73 fprintf(output,
" corrFactorHi: 0x%x\n", sig->variableData[1]);
80 printSCAN_FRAGCONF(FILE * output,
const Uint32 * theData,
81 Uint32 len, Uint16 receiverBlockNo)
85 fprintf(output,
" senderData: 0x%x\n", sig->senderData);
86 fprintf(output,
" completedOps: %u\n", sig->completedOps);
87 fprintf(output,
" fragmentCompleted: 0x%x\n", sig->fragmentCompleted);
88 fprintf(output,
" transId1: 0x%x\n", sig->transId1);
89 fprintf(output,
" transId2: 0x%x\n", sig->transId2);
90 fprintf(output,
" total_len: %u\n", sig->total_len);