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

Commit 62566b2

Browse files
committed
Avoid locking operations in postmaster
1 parent cb67e07 commit 62566b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/postmaster/postmaster.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4390,7 +4390,7 @@ ScheduleSession(DatabasePool *pool, Port *port)
43904390
Assert(false);
43914391
}
43924392
if (!worker->proc)
4393-
worker->proc = BackendPidGetProc(worker->pid);
4393+
worker->proc = BackendPidGetProcWithLock(worker->pid);
43944394

43954395
if (worker->proc && worker->n_sessions - worker->proc->nFinishedSessions >= MaxSessions)
43964396
{

0 commit comments

Comments
 (0)