-
#define BufTableHashPartition(hashcode)
-
((hashcode) % NUM_BUFFER_PARTITIONS)
-
#define BufMappingPartitionLock(hashcode)
-
((LWLockId) (FirstBufMappingLock + BufTableHashPartition(hashcode)))
-
newPartitionLock = BufMappingPartitionLock(newHash);
LWLockAcquire(newPartitionLock, LW_SHARED);