pgsql: Fix SLRU bank selection code

2025-01-08 Thread Álvaro Herrera
Fix SLRU bank selection code The originally submitted code (using bit masking) was correct when the number of slots was restricted to be a power of two -- but that limitation was removed during development that led to commit 53c2a97a9266, which made the bank selection code incorrect. This led to

pgsql: Fix SLRU bank selection code

2025-01-08 Thread Álvaro Herrera
Fix SLRU bank selection code The originally submitted code (using bit masking) was correct when the number of slots was restricted to be a power of two -- but that limitation was removed during development that led to commit 53c2a97a9266, which made the bank selection code incorrect. This led to