mirror of
https://github.com/postgres/postgres.git
synced 2025-05-09 18:21:05 +03:00
Add nbtree page deletion assertion.
Add a documenting assertion that's similar to the nearby assertion added by commit cd8c73a3. 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.
This commit is contained in:
parent
9e496768b8
commit
a451b7d442
@ -1697,6 +1697,7 @@ _bt_pagedel(Relation rel, Buffer leafbuf, TransactionId *oldestBtpoXact)
|
|||||||
if (_bt_leftsib_splitflag(rel, leftsib, leafblkno))
|
if (_bt_leftsib_splitflag(rel, leftsib, leafblkno))
|
||||||
{
|
{
|
||||||
ReleaseBuffer(leafbuf);
|
ReleaseBuffer(leafbuf);
|
||||||
|
Assert(ndeleted == 0);
|
||||||
return ndeleted;
|
return ndeleted;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user