mirror of
https://github.com/postgres/postgres.git
synced 2025-11-18 02:02:55 +03:00
Yet more elimination of dead stores and useless initializations.
I'm not sure what tool Ranier was using, but the ones I contributed were found by using a newer version of scan-build than I tried before. Ranier Vilela and Tom Lane Discussion: https://postgr.es/m/CAEudQAo1+AcGppxDSg8k+zF4+Kv+eJyqzEDdbpDg58-=MQcerQ@mail.gmail.com
This commit is contained in:
@@ -3433,7 +3433,6 @@ CancelDBBackends(Oid databaseid, ProcSignalReason sigmode, bool conflictPending)
|
||||
{
|
||||
ProcArrayStruct *arrayP = procArray;
|
||||
int index;
|
||||
pid_t pid = 0;
|
||||
|
||||
/* tell all backends to die */
|
||||
LWLockAcquire(ProcArrayLock, LW_EXCLUSIVE);
|
||||
@@ -3446,6 +3445,7 @@ CancelDBBackends(Oid databaseid, ProcSignalReason sigmode, bool conflictPending)
|
||||
if (databaseid == InvalidOid || proc->databaseId == databaseid)
|
||||
{
|
||||
VirtualTransactionId procvxid;
|
||||
pid_t pid;
|
||||
|
||||
GET_VXID_FROM_PGPROC(procvxid, *proc);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user