We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2793ace commit 7b063ffCopy full SHA for 7b063ff
src/backend/access/transam/slru.c
@@ -1184,7 +1184,7 @@ SlruSelectLRUPage(SlruCtl ctl, int64 pageno)
1184
Assert(LWLockHeldByMe(SimpleLruGetBankLock(ctl, pageno)));
1185
1186
/* See if page already has a buffer assigned */
1187
- for (int slotno = 0; slotno < shared->num_slots; slotno++)
+ for (int slotno = bankstart; slotno < bankend; slotno++)
1188
{
1189
if (shared->page_status[slotno] != SLRU_PAGE_EMPTY &&
1190
shared->page_number[slotno] == pageno)
0 commit comments