#include <AccLock.hpp>
Public Types | |
| LockShared = 1 | |
| LockExclusive = 2 | |
| Unlock = 3 | |
| Abort = 4 | |
| AbortWithConf = 5 | |
| Success = 0 | |
| IsBlocked = 1 | |
| WouldBlock = 2 | |
| Refused = 3 | |
| NoFreeOp = 4 | |
| enum | RequestType { LockShared = 1, LockExclusive = 2, Unlock = 3, Abort = 4, AbortWithConf = 5 } |
| enum | RequestFlag |
| enum | ReturnCode { Success = 0, IsBlocked = 1, WouldBlock = 2, Refused = 3, NoFreeOp = 4 } |
Public Member Functions | |
| STATIC_CONST (LockSignalLength=12) | |
| STATIC_CONST (UndoSignalLength=3) | |
Private Attributes | |
| Uint32 | returnCode |
| Uint32 | requestInfo |
| Uint32 | accOpPtr |
| Uint32 | userPtr |
| Uint32 | userRef |
| Uint32 | tableId |
| Uint32 | fragId |
| Uint32 | fragPtrI |
| Uint32 | hashValue |
| Uint32 | tupAddr |
| Uint32 | transId1 |
| Uint32 | transId2 |
Friends | |
| class | Dbacc |
| class | Dbtup |
| class | Dbtux |
| bool | printACC_LOCKREQ (FILE *, const Uint32 *, Uint32, Uint16) |
Definition at line 26 of file AccLock.hpp.
Definition at line 32 of file AccLock.hpp.
00032 { // first byte 00033 LockShared = 1, 00034 LockExclusive = 2, 00035 Unlock = 3, 00036 Abort = 4, 00037 AbortWithConf = 5 00038 };
Definition at line 41 of file AccLock.hpp.
00041 { 00042 Success = 0, 00043 IsBlocked = 1, // was put in lock queue 00044 WouldBlock = 2, // if we add non-blocking option 00045 Refused = 3, 00046 NoFreeOp = 4 00047 };
| AccLockReq::STATIC_CONST | ( | UndoSignalLength | = 3 |
) |
| AccLockReq::STATIC_CONST | ( | LockSignalLength | = 12 |
) |
friend class Dbacc [friend] |
Definition at line 27 of file AccLock.hpp.
friend class Dbtup [friend] |
Definition at line 28 of file AccLock.hpp.
friend class Dbtux [friend] |
Definition at line 29 of file AccLock.hpp.
Definition at line 21 of file AccLock.cpp.
00022 { 00023 const AccLockReq* const sig = (const AccLockReq*)theData; 00024 Uint32 reqtype = sig->requestInfo & 0xFF; 00025 switch (sig->returnCode) { 00026 case RNIL: 00027 fprintf(output, " returnCode=RNIL"); 00028 break; 00029 case AccLockReq::Success: 00030 fprintf(output, " returnCode=Success"); 00031 break; 00032 case AccLockReq::IsBlocked: 00033 fprintf(output, " returnCode=IsBlocked"); 00034 break; 00035 case AccLockReq::WouldBlock: 00036 fprintf(output, " returnCode=WouldBlock"); 00037 break; 00038 case AccLockReq::Refused: 00039 fprintf(output, " returnCode=Refused"); 00040 break; 00041 case AccLockReq::NoFreeOp: 00042 fprintf(output, " returnCode=NoFreeOp"); 00043 break; 00044 default: 00045 fprintf(output, " returnCode=%u?", sig->returnCode); 00046 break; 00047 } 00048 switch (reqtype) { 00049 case AccLockReq::LockShared: 00050 fprintf(output, " req=LockShared\n"); 00051 break; 00052 case AccLockReq::LockExclusive: 00053 fprintf(output, " req=LockExclusive\n"); 00054 break; 00055 case AccLockReq::Unlock: 00056 fprintf(output, " req=Unlock\n"); 00057 break; 00058 case AccLockReq::Abort: 00059 fprintf(output, " req=Abort\n"); 00060 break; 00061 default: 00062 fprintf(output, " req=%u\n", reqtype); 00063 break; 00064 } 00065 fprintf(output, " accOpPtr: 0x%x\n", sig->accOpPtr); 00066 if (reqtype == AccLockReq::LockShared || 00067 reqtype == AccLockReq::LockExclusive) { 00068 fprintf(output, " userPtr: 0x%x userRef: 0x%x\n", sig->userPtr, sig->userRef); 00069 fprintf(output, " table: id=%u", sig->tableId); 00070 fprintf(output, " fragment: id=%u ptr=0x%x\n", sig->fragId, sig->fragPtrI); 00071 fprintf(output, " tuple: addr=0x%x hashValue=%x\n", sig->tupAddr, sig->hashValue); 00072 fprintf(output, " transid: %08x %08x\n", sig->transId1, sig->transId2); 00073 } 00074 return true; 00075 }
Uint32 AccLockReq::accOpPtr [private] |
Definition at line 53 of file AccLock.hpp.
Referenced by Dbtux::execACC_CHECK_SCAN(), Dbacc::execACC_LOCKREQ(), Dbtux::execACCKEYCONF(), Dbtup::execACCKEYCONF(), Dbtux::execACCKEYREF(), Dbtup::execACCKEYREF(), Dbtux::execNEXT_SCANREQ(), Dbtup::execNEXT_SCANREQ(), Dbtux::scanClose(), Dbtup::scanClose(), and Dbtup::scanReply().
Uint32 AccLockReq::fragId [private] |
Definition at line 58 of file AccLock.hpp.
Referenced by Dbtux::execACC_CHECK_SCAN(), Dbacc::execACC_LOCKREQ(), and Dbtup::scanReply().
Uint32 AccLockReq::fragPtrI [private] |
Definition at line 59 of file AccLock.hpp.
Referenced by Dbtux::execACC_CHECK_SCAN(), Dbacc::execACC_LOCKREQ(), and Dbtup::scanReply().
Uint32 AccLockReq::hashValue [private] |
Definition at line 60 of file AccLock.hpp.
Referenced by Dbtux::execACC_CHECK_SCAN(), Dbacc::execACC_LOCKREQ(), and Dbtup::scanReply().
Uint32 AccLockReq::requestInfo [private] |
Definition at line 52 of file AccLock.hpp.
Referenced by Dbtux::execACC_CHECK_SCAN(), Dbacc::execACC_LOCKREQ(), Dbtux::execACCKEYCONF(), Dbtup::execACCKEYCONF(), Dbtux::execACCKEYREF(), Dbtup::execACCKEYREF(), Dbtux::execNEXT_SCANREQ(), Dbtup::execNEXT_SCANREQ(), Dbtux::scanClose(), Dbtup::scanClose(), and Dbtup::scanReply().
Uint32 AccLockReq::returnCode [private] |
Definition at line 51 of file AccLock.hpp.
Referenced by Dbtux::execACC_CHECK_SCAN(), Dbacc::execACC_LOCKREQ(), Dbtux::execACCKEYCONF(), Dbtup::execACCKEYCONF(), Dbtux::execACCKEYREF(), Dbtup::execACCKEYREF(), Dbtux::execNEXT_SCANREQ(), Dbtup::execNEXT_SCANREQ(), Dbtux::scanClose(), Dbtup::scanClose(), and Dbtup::scanReply().
Uint32 AccLockReq::tableId [private] |
Definition at line 57 of file AccLock.hpp.
Referenced by Dbtux::execACC_CHECK_SCAN(), Dbacc::execACC_LOCKREQ(), and Dbtup::scanReply().
Uint32 AccLockReq::transId1 [private] |
Definition at line 62 of file AccLock.hpp.
Referenced by Dbtux::execACC_CHECK_SCAN(), Dbacc::execACC_LOCKREQ(), and Dbtup::scanReply().
Uint32 AccLockReq::transId2 [private] |
Definition at line 63 of file AccLock.hpp.
Referenced by Dbtux::execACC_CHECK_SCAN(), Dbacc::execACC_LOCKREQ(), and Dbtup::scanReply().
Uint32 AccLockReq::tupAddr [private] |
Definition at line 61 of file AccLock.hpp.
Referenced by Dbtux::execACC_CHECK_SCAN(), Dbacc::execACC_LOCKREQ(), and Dbtup::scanReply().
Uint32 AccLockReq::userPtr [private] |
Definition at line 55 of file AccLock.hpp.
Referenced by Dbtux::execACC_CHECK_SCAN(), Dbacc::execACC_LOCKREQ(), and Dbtup::scanReply().
Uint32 AccLockReq::userRef [private] |
Definition at line 56 of file AccLock.hpp.
Referenced by Dbtux::execACC_CHECK_SCAN(), Dbacc::execACC_LOCKREQ(), and Dbtup::scanReply().
1.4.7

