* 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). */
| 76 | * to do the hash computation twice (hash_any is a bit slow). |
| 77 | */ |
| 78 | uint32 |
| 79 | BufTableHashCode(BufferTag *tagPtr) |
| 80 | { |
| 81 | return get_hash_value(SharedBufHash, (void *) tagPtr); |
| 82 | } |
| 83 | |
| 84 | /* |
| 85 | * BufTableLookup |
no test coverage detected