Commit 4e2970f8 authored by Andres Freund's avatar Andres Freund

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.
parent c4c2885c
......@@ -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)))
{
......
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