Skip to content

Commit ab2343d

Browse files
Remove redundant _bt_killitems() buffer check.
_bt_getbuf() cannot return an invalid buffer. Oversight in commit 2ed5b87.
1 parent e30b0b5 commit ab2343d

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/backend/access/nbtree/nbtutils.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1756,10 +1756,6 @@ _bt_killitems(IndexScanDesc scan)
17561756
/* Attempt to re-read the buffer, getting pin and lock. */
17571757
buf = _bt_getbuf(scan->indexRelation, so->currPos.currPage, BT_READ);
17581758

1759-
/* It might not exist anymore; in which case we can't hint it. */
1760-
if (!BufferIsValid(buf))
1761-
return;
1762-
17631759
page = BufferGetPage(buf);
17641760
if (BufferGetLSNAtomic(buf) == so->currPos.lsn)
17651761
so->currPos.buf = buf;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy