Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
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)