mirror of
https://github.com/neondatabase/neon.git
synced 2026-05-22 15:41:15 +00:00
pgxn: amend key hashing
This commit is contained in:
committed by
Konstantin Knizhnik
parent
3853646c75
commit
4e47d3a984
@@ -200,14 +200,10 @@ get_shard_number(BufferTag* tag)
|
||||
uint32 hash;
|
||||
|
||||
#if PG_MAJORVERSION_NUM < 16
|
||||
hash = murmurhash32(tag->rnode.spcNode);
|
||||
hash = hash_combine(hash, murmurhash32(tag->rnode.dbNode));
|
||||
hash = hash_combine(hash, murmurhash32(tag->rnode.relNode));
|
||||
hash = murmurhash32(tag->rnode.relNode);
|
||||
hash = hash_combine(hash, murmurhash32(tag->blockNum/(MB/BLCKSZ)/stripe_size));
|
||||
#else
|
||||
hash = murmurhash32(tag->spcOid);
|
||||
hash = hash_combine(hash, murmurhash32(tag->dbOid));
|
||||
hash = hash_combine(hash, murmurhash32(tag->relNumber));
|
||||
hash = murmurhash32(tag->relNumber);
|
||||
hash = hash_combine(hash, murmurhash32(tag->blockNum/(MB/BLCKSZ)/stripe_size));
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user