Content-Length: 258699 | pFad | http://github.com/postgrespro/postgres_cluster/commit/4e2970f8807f1ccfc8029979a70dc80ee102ce48

90 Fix assert with side effects in the new PHJ code. · postgrespro/postgres_cluster@4e2970f · GitHub
Skip to content

Commit 4e2970f

Browse files
committed
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.
1 parent c4c2885 commit 4e2970f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/executor/nodeHash.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1275,7 +1275,7 @@ ExecParallelHashRepartitionFirst(HashJoinTable hashtable)
12751275
dsa_pointer chunk_shared;
12761276
HashMemoryChunk chunk;
12771277

1278-
Assert(hashtable->nbatch = hashtable->parallel_state->nbatch);
1278+
Assert(hashtable->nbatch == hashtable->parallel_state->nbatch);
12791279

12801280
while ((chunk = ExecParallelHashPopChunkQueue(hashtable, &chunk_shared)))
12811281
{

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres_cluster/commit/4e2970f8807f1ccfc8029979a70dc80ee102ce48

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy