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
This commit is contained in:
Alvaro Herrera 2019-09-12 10:34:50 -03:00
parent 9b3c8f07ff
commit bc98e1ea64
1 changed files with 2 additions and 2 deletions

View File

@ -1186,8 +1186,8 @@ void
tuplesort_set_bound(Tuplesortstate *state, int64 bound)
{
/* Assert we're called before loading any tuples */
Assert(state->status == TSS_INITIAL);
Assert(state->memtupcount == 0);
Assert(state->status == TSS_INITIAL && state->memtupcount == 0);
Assert(!state->bounded);
Assert(!WORKER(state));