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

Function hash_allocate

src/jrd/lck.cpp:995–1017  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

993
994
995static void hash_allocate(Lock* lock)
996{
997/**************************************
998 *
999 * h a s h _ a l l o c a t e
1000 *
1001 **************************************
1002 *
1003 * Functional description
1004 * Allocate the hash table for handling
1005 * compatible locks.
1006 *
1007 **************************************/
1008 fb_assert(LCK_CHECK_LOCK(lock));
1009
1010 Jrd::Attachment* const attachment = lock->getLockAttachment();
1011
1012 if (attachment)
1013 {
1014 attachment->att_compatibility_table =
1015 vec<Lock*>::newVector(*attachment->att_pool, LOCK_HASH_SIZE);
1016 }
1017}
1018
1019
1020static Lock* hash_get_lock(Lock* lock, USHORT* hash_slot, Lock*** prior)

Callers 1

hash_get_lockFunction · 0.85

Calls 1

getLockAttachmentMethod · 0.80

Tested by

no test coverage detected