Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 9ccf3f4

Browse files
committed
Unlock semaphore on shutdown in bgworker
1 parent a2002de commit 9ccf3f4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

contrib/mmts/bgwpool.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ static void BgwPoolMainLoop(BgwPool* pool)
5252
PGSemaphoreLock(&pool->available);
5353
SpinLockAcquire(&pool->lock);
5454
if (pool->shutdown) {
55+
PGSemaphoreUnlock(&pool->available);
5556
break;
5657
}
5758
size = *(int*)&pool->queue[pool->head];

0 commit comments

Comments
 (0)