Commit bc98e1ea authored by Alvaro Herrera's avatar Alvaro Herrera

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
parent 9b3c8f07
...@@ -1186,8 +1186,8 @@ void ...@@ -1186,8 +1186,8 @@ void
tuplesort_set_bound(Tuplesortstate *state, int64 bound) tuplesort_set_bound(Tuplesortstate *state, int64 bound)
{ {
/* Assert we're called before loading any tuples */ /* Assert we're called before loading any tuples */
Assert(state->status == TSS_INITIAL); Assert(state->status == TSS_INITIAL && state->memtupcount == 0);
Assert(state->memtupcount == 0);
Assert(!state->bounded); Assert(!state->bounded);
Assert(!WORKER(state)); Assert(!WORKER(state));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment