Content-Length: 256444 | pFad | http://github.com/postgrespro/postgres/commit/a451b7d44249b8655db8d40476ace9f84d76ab88

F7 Add nbtree page deletion assertion. · postgrespro/postgres@a451b7d · GitHub
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/a451b7d44249b8655db8d40476ace9f84d76ab88

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy