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.
pull/27/head
Andres Freund 8 years ago
parent c4c2885cbb
commit 4e2970f880
  1. 2
      src/backend/executor/nodeHash.c

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

Loading…
Cancel
Save