19 #include <signaldata/AccLock.hpp>
20 #include <SignalLoggerManager.hpp>
23 printACC_LOCKREQ(FILE* output,
const Uint32* theData, Uint32 len, Uint16 rbn)
26 Uint32 reqtype = sig->requestInfo & 0xFF;
27 switch (sig->returnCode) {
29 fprintf(output,
" returnCode=RNIL");
31 case AccLockReq::Success:
32 fprintf(output,
" returnCode=Success");
34 case AccLockReq::IsBlocked:
35 fprintf(output,
" returnCode=IsBlocked");
37 case AccLockReq::WouldBlock:
38 fprintf(output,
" returnCode=WouldBlock");
40 case AccLockReq::Refused:
41 fprintf(output,
" returnCode=Refused");
43 case AccLockReq::NoFreeOp:
44 fprintf(output,
" returnCode=NoFreeOp");
47 fprintf(output,
" returnCode=%u?", sig->returnCode);
51 case AccLockReq::LockShared:
52 fprintf(output,
" req=LockShared\n");
54 case AccLockReq::LockExclusive:
55 fprintf(output,
" req=LockExclusive\n");
57 case AccLockReq::Unlock:
58 fprintf(output,
" req=Unlock\n");
60 case AccLockReq::Abort:
61 fprintf(output,
" req=Abort\n");
64 fprintf(output,
" req=%u\n", reqtype);
67 fprintf(output,
" accOpPtr: 0x%x\n", sig->accOpPtr);
68 if (reqtype == AccLockReq::LockShared ||
69 reqtype == AccLockReq::LockExclusive) {
70 fprintf(output,
" userPtr: 0x%x userRef: 0x%x\n", sig->userPtr, sig->userRef);
71 fprintf(output,
" table: id=%u", sig->tableId);
72 fprintf(output,
" fragment: id=%u ptr=0x%x\n", sig->fragId, sig->fragPtrI);
73 fprintf(output,
" tuple: addr=%u/%u hashValue=%x\n", sig->page_id, sig->page_idx, sig->hashValue);
74 fprintf(output,
" transid: %08x %08x\n", sig->transId1, sig->transId2);