mirror of
https://github.com/postgres/postgres.git
synced 2025-07-30 11:03:19 +03:00
Remove redundant _bt_killitems() buffer check.
_bt_getbuf() cannot return an invalid buffer.
Oversight in commit 2ed5b87f96
.
This commit is contained in:
@ -1756,10 +1756,6 @@ _bt_killitems(IndexScanDesc scan)
|
|||||||
/* Attempt to re-read the buffer, getting pin and lock. */
|
/* Attempt to re-read the buffer, getting pin and lock. */
|
||||||
buf = _bt_getbuf(scan->indexRelation, so->currPos.currPage, BT_READ);
|
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);
|
page = BufferGetPage(buf);
|
||||||
if (BufferGetLSNAtomic(buf) == so->currPos.lsn)
|
if (BufferGetLSNAtomic(buf) == so->currPos.lsn)
|
||||||
so->currPos.buf = buf;
|
so->currPos.buf = buf;
|
||||||
|
Reference in New Issue
Block a user