Skip to content

Commit bc98e1e

Browse files
committed
Merge two assertions to make comment clearer
Authored by Tom Lane, after a gripe from James Coleman. Discussion: https://postgr.es/m/CAAaqYe9GD__4Crm=ddz+-XXcNhfY_V5gFYdLdmkFNq=2VHO56Q@mail.gmail.com
1 parent 9b3c8f0 commit bc98e1e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/backend/utils/sort/tuplesort.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1186,8 +1186,8 @@ void
11861186
tuplesort_set_bound(Tuplesortstate *state, int64 bound)
11871187
{
11881188
/* Assert we're called before loading any tuples */
1189-
Assert(state->status == TSS_INITIAL);
1190-
Assert(state->memtupcount == 0);
1189+
Assert(state->status == TSS_INITIAL && state->memtupcount == 0);
1190+
11911191
Assert(!state->bounded);
11921192
Assert(!WORKER(state));
11931193

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