MCPcopy Create free account
hub / github.com/apache/cloudberry / LockTagHashCode

Function LockTagHashCode

src/backend/storage/lmgr/lock.c:569–573  ·  view source on GitHub ↗

* Compute the hash code associated with a LOCKTAG. * * To avoid unnecessary recomputations of the hash code, we try to do this * just once per function, and then pass it around as needed. Aside from * passing the hashcode to hash_search_with_hash_value(), we can extract * the lock partition number from the hashcode. */

Source from the content-addressed store, hash-verified

567 * the lock partition number from the hashcode.
568 */
569uint32
570LockTagHashCode(const LOCKTAG *locktag)
571{
572 return get_hash_value(LockMethodLockHash, (const void *) locktag);
573}
574
575/*
576 * Compute the hash code associated with a PROCLOCKTAG.

Callers 12

ResLockAcquireFunction · 0.85
BuildQueueStatusContextFunction · 0.85
proclock_hashFunction · 0.85
LockAcquireExtendedFunction · 0.85
LockReleaseAllFunction · 0.85
GetLockConflictsFunction · 0.85
LockRefindAndReleaseFunction · 0.85
lock_twophase_recoverFunction · 0.85
VirtualXactLockFunction · 0.85
LockWaiterCountFunction · 0.85
CheckDeadLockFunction · 0.85

Calls 1

get_hash_valueFunction · 0.85

Tested by

no test coverage detected