Skip to content

Commit a451b7d

Browse files
Add nbtree page deletion assertion.
Add a documenting assertion that's similar to the nearby assertion added by commit cd8c73a. This conveys that the entire call to _bt_pagedel() does no work if it isn't possible to get a descent stack for the initial scanblkno page.
1 parent 9e49676 commit a451b7d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/backend/access/nbtree/nbtpage.c

+1
Original file line numberDiff line numberDiff line change
@@ -1697,6 +1697,7 @@ _bt_pagedel(Relation rel, Buffer leafbuf, TransactionId *oldestBtpoXact)
16971697
if (_bt_leftsib_splitflag(rel, leftsib, leafblkno))
16981698
{
16991699
ReleaseBuffer(leafbuf);
1700+
Assert(ndeleted == 0);
17001701
return ndeleted;
17011702
}
17021703

0 commit comments

Comments
 (0)