Content-Length: 253979 | pFad | http://github.com/postgrespro/postgres_cluster/commit/2bfdee064a5bdf6e3654beb7c6cc8563cf558de3

35 Unlock semaphore on shutdown in bgworker · postgrespro/postgres_cluster@2bfdee0 · GitHub
Skip to content

Commit 2bfdee0

Browse files
knizhnikkelvich
authored andcommitted
Unlock semaphore on shutdown in bgworker
1 parent ccd07e6 commit 2bfdee0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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)








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/2bfdee064a5bdf6e3654beb7c6cc8563cf558de3

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy