diff options
author | Jeff Davis <jdavis@postgresql.org> | 2024-03-23 13:37:08 -0700 |
---|---|---|
committer | Jeff Davis <jdavis@postgresql.org> | 2024-03-23 13:37:08 -0700 |
commit | bf038eb219bb6c7dc8a8de58de3513c035a5efba (patch) | |
tree | 6ea01236bf88e5895f81002ad31098f3a50b26b7 /src | |
parent | d5c6affb85b821ba8847fe61a220be316e2b8552 (diff) |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/backend/utils/sort/logtape.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/backend/utils/sort/logtape.c b/src/backend/utils/sort/logtape.c index 720f9dfe2b7..95b174fc7e8 100644 --- a/src/backend/utils/sort/logtape.c +++ b/src/backend/utils/sort/logtape.c @@ -1269,12 +1269,5 @@ LogicalTapeTell(LogicalTapeSet *lts, int tapenum, long 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; } |