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

Function BufTableHashCode

src/backend/storage/buffer/buf_table.c:78–82  ·  view source on GitHub ↗

* BufTableHashCode * Compute the hash code associated with a BufferTag * * This must be passed to the lookup/insert/delete routines along with the * tag. We do it like this because the callers need to know the hash code * in order to determine which buffer partition to lock, and we don't want * to do the hash computation twice (hash_any is a bit slow). */

Source from the content-addressed store, hash-verified

76 * to do the hash computation twice (hash_any is a bit slow).
77 */
78uint32
79BufTableHashCode(BufferTag *tagPtr)
80{
81 return get_hash_value(SharedBufHash, (void *) tagPtr);
82}
83
84/*
85 * BufTableLookup

Callers 4

PrefetchSharedBufferFunction · 0.85
BufferAllocFunction · 0.85
InvalidateBufferFunction · 0.85

Calls 1

get_hash_valueFunction · 0.85

Tested by

no test coverage detected