MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / readData2

Method readData2

src/lock/lock.cpp:975–1008  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

973
974
975LOCK_DATA_T LockManager::readData2(USHORT series,
976 const UCHAR* value,
977 USHORT length,
978 SRQ_PTR owner_offset)
979{
980/**************************************
981 *
982 * r e a d D a t a 2
983 *
984 **************************************
985 *
986 * Functional description
987 * Read data associated with transient locks.
988 *
989 **************************************/
990 LOCK_TRACE(("LM::readData2 (%ld)\n", owner_offset));
991
992 if (!owner_offset)
993 return 0;
994
995 LockTableGuard guard(this, FB_FUNCTION, owner_offset);
996
997 ++(m_sharedMemory->getHeader()->lhb_read_data);
998
999 if (series < LCK_MAX_SERIES)
1000 ++(m_sharedMemory->getHeader()->lhb_operations[series]);
1001 else
1002 ++(m_sharedMemory->getHeader()->lhb_operations[0]);
1003
1004 USHORT junk;
1005 const lbl* const lock = find_lock(series, value, length, &junk);
1006
1007 return lock ? lock->lbl_data : 0;
1008}
1009
1010
1011LOCK_DATA_T LockManager::writeData(SRQ_PTR request_offset, LOCK_DATA_T data)

Callers 1

LCK_read_dataFunction · 0.80

Calls 1

getHeaderMethod · 0.45

Tested by

no test coverage detected