Content-Length: 264224 | pFad | http://github.com/postgrespro/postgres_cluster/commit/bc98e1ea64627183746ecffcb957db147038134e

E7 Merge two assertions to make comment clearer · postgrespro/postgres_cluster@bc98e1e · GitHub
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)








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_cluster/commit/bc98e1ea64627183746ecffcb957db147038134e

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy