Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitab2343d

Browse files
Remove redundant _bt_killitems() buffer check.
_bt_getbuf() cannot return an invalid buffer.Oversight in commit2ed5b87.
1 parente30b0b5 commitab2343d

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)

[8]ページ先頭

©2009-2025 Movatter.jp