Thread: BUG #18582: fixed range of search for empty slot in SLRU

BUG #18582: fixed range of search for empty slot in SLRU

From
PG Bug reporting form
Date:
The following bug has been logged on the website:

Bug reference:      18582
Logged by:          Sergey Sargsyan
Email address:      sergey.sargsyan.2001@gmail.com
PostgreSQL version: 17beta3
Operating system:   Linux
Description:

pageno should be searched only inside its own bank, because it may never
appear in other banks.

https://github.com/postgres/postgres/pull/174


Re: BUG #18582: fixed range of search for empty slot in SLRU

From
Alvaro Herrera
Date:
On 2024-Aug-13, PG Bug reporting form wrote:

> pageno should be searched only inside its own bank, because it may never
> appear in other banks.
> 
> https://github.com/postgres/postgres/pull/174

For the archives, the patch proposed in the pull request is attached
here.

I agree with this patch.  This is just an innocuous oversight in commit
53c2a97a9266.  Dilip?

-- 
Álvaro Herrera               48°01'N 7°57'E  —  https://www.EnterpriseDB.com/
"El sentido de las cosas no viene de las cosas, sino de
las inteligencias que las aplican a sus problemas diarios
en busca del progreso." (Ernesto Hernández-Novich)

Attachment