mirror of
https://github.com/postgres/postgres.git
synced 2025-05-17 06:41:24 +03:00
Remove incorrect Assert introduced in c8aeaf3ab.
Already removed incidentally in version 15 (c4649cce3), so this commit is only applied to versions 13 and 14. The comment above is misleading in all versions 13 and later, so that will be fixed in a separate commit. Discussion: https://postgr.es/m/cfd84cb8-12fe-433a-a4bb-f460a4515f9c.zhaotinghai.zth%40alibaba-inc.com Reported-by: Tinghai Zhao Backpatch-through: 13
This commit is contained in:
parent
d5c6affb85
commit
bf038eb219
@ -1269,12 +1269,5 @@ LogicalTapeTell(LogicalTapeSet *lts, int tapenum,
|
|||||||
long
|
long
|
||||||
LogicalTapeSetBlocks(LogicalTapeSet *lts)
|
LogicalTapeSetBlocks(LogicalTapeSet *lts)
|
||||||
{
|
{
|
||||||
#ifdef USE_ASSERT_CHECKING
|
|
||||||
for (int i = 0; i < lts->nTapes; i++)
|
|
||||||
{
|
|
||||||
LogicalTape *lt = <s->tapes[i];
|
|
||||||
Assert(!lt->writing || lt->buffer == NULL);
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
return lts->nBlocksWritten - lts->nHoleBlocks;
|
return lts->nBlocksWritten - lts->nHoleBlocks;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user