mirror of
https://github.com/postgres/postgres.git
synced 2025-11-09 06:21:09 +03:00
Replace PGPROC.isBackgroundWorker with isRegularBackend.
Commit 34486b609 effectively redefined isBackgroundWorker as meaning
"not a regular backend", whereas before it had the narrower
meaning of AmBackgroundWorkerProcess(). For clarity, rename the
field to isRegularBackend and invert its sense.
Discussion: https://postgr.es/m/1808397.1735156190@sss.pgh.pa.us
This commit is contained in:
@@ -466,7 +466,7 @@ MarkAsPreparingGuts(GlobalTransaction gxact, TransactionId xid, const char *gid,
|
||||
proc->databaseId = databaseid;
|
||||
proc->roleId = owner;
|
||||
proc->tempNamespaceId = InvalidOid;
|
||||
proc->isBackgroundWorker = true;
|
||||
proc->isRegularBackend = false;
|
||||
proc->lwWaiting = LW_WS_NOT_WAITING;
|
||||
proc->lwWaitMode = 0;
|
||||
proc->waitLock = NULL;
|
||||
|
||||
Reference in New Issue
Block a user