diff options
author | Andres Freund <andres@anarazel.de> | 2017-12-24 02:57:55 -0800 |
---|---|---|
committer | Andres Freund <andres@anarazel.de> | 2017-12-24 02:57:55 -0800 |
commit | 4e2970f8807f1ccfc8029979a70dc80ee102ce48 (patch) | |
tree | e6cc4966366b37800df29fe49f26deb35d36766b | |
parent | c4c2885cbb1803f772e58f6db4c8951d8cd672cd (diff) |
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.
-rw-r--r-- | src/backend/executor/nodeHash.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/executor/nodeHash.c b/src/backend/executor/nodeHash.c index 4284e8682a0..0a519fae313 100644 --- a/src/backend/executor/nodeHash.c +++ b/src/backend/executor/nodeHash.c @@ -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))) { |