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

Lines changed: 1 addition & 0 deletions
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)
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