Search for SLRU page only in its own bank

Alvaro Herrera <alvherre@alvh.no-ip.org>

Commit: 7b063ff26a5fa87ee59d2f2907d9aade87fcb803
Author: Alvaro Herrera <alvherre@alvh.no-ip.org>
Date: 2024-08-19T00:49:57Z
Releases: 18.0
Search for SLRU page only in its own bank

One of the two slot scans in SlruSelectLRUPage was not walking only the
slots in the specific bank where the buffer could be; change it to do
that.

Oversight in 53c2a97a9266.

Author: Sergey Sargsyan <sergey.sargsyan.2001@gmail.com>
Discussion: https://postgr.es/m/18582-5f301dd30ba91a38@postgresql.org

Files

PathChange+/−
src/backend/access/transam/slru.c modified +1 −1

Discussion