Fix assert with side effects in the new PHJ code.

Instead of asserting the assert just set the value to what it was
supposed to test...

Per coverity.
This commit is contained in:
Andres Freund 2017-12-24 02:57:55 -08:00
parent c4c2885cbb
commit 4e2970f880

View File

@ -1275,7 +1275,7 @@ ExecParallelHashRepartitionFirst(HashJoinTable hashtable)
dsa_pointer chunk_shared;
HashMemoryChunk chunk;
Assert(hashtable->nbatch = hashtable->parallel_state->nbatch);
Assert(hashtable->nbatch == hashtable->parallel_state->nbatch);
while ((chunk = ExecParallelHashPopChunkQueue(hashtable, &chunk_shared)))
{