Commit ab2343d4 authored by Peter Geoghegan's avatar Peter Geoghegan

Remove redundant _bt_killitems() buffer check.

_bt_getbuf() cannot return an invalid buffer.

Oversight in commit 2ed5b87f.
parent e30b0b5c
......@@ -1756,10 +1756,6 @@ _bt_killitems(IndexScanDesc scan)
/* Attempt to re-read the buffer, getting pin and lock. */
buf = _bt_getbuf(scan->indexRelation, so->currPos.currPage, BT_READ);
/* It might not exist anymore; in which case we can't hint it. */
if (!BufferIsValid(buf))
return;
page = BufferGetPage(buf);
if (BufferGetLSNAtomic(buf) == so->currPos.lsn)
so->currPos.buf = buf;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment