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

Function LCK_read_data

src/jrd/lck.cpp:761–784  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

759
760
761LOCK_DATA_T LCK_read_data(thread_db* tdbb, Lock* lock)
762{
763/**************************************
764 *
765 * L C K _ r e a d _ d a t a
766 *
767 **************************************
768 *
769 * Functional description
770 * Read the data associated with a lock.
771 *
772 **************************************/
773 SET_TDBB(tdbb);
774 Database* const dbb = tdbb->getDatabase();
775
776 fb_assert(LCK_CHECK_LOCK(lock));
777
778 const LOCK_DATA_T data =
779 dbb->lockManager()->readData2(lock->lck_type,
780 lock->getKeyPtr(), lock->lck_length,
781 lock->lck_owner_handle);
782 fb_assert(LCK_CHECK_LOCK(lock));
783 return data;
784}
785
786
787void LCK_release(thread_db* tdbb, Lock* lock)

Callers 8

lockAndReadHeaderMethod · 0.85
changeCryptStateMethod · 0.85
snapshotStateMethod · 0.85
checkGCActiveFunction · 0.85
SDW_lck_updateFunction · 0.85
blocking_ast_shadowingFunction · 0.85
SHUT_blocking_astFunction · 0.85
transaction_startFunction · 0.85

Calls 5

SET_TDBBFunction · 0.85
getDatabaseMethod · 0.80
readData2Method · 0.80
lockManagerMethod · 0.80
getKeyPtrMethod · 0.80

Tested by

no test coverage detected