We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8438a3f commit e722846Copy full SHA for e722846
src/backend/storage/ipc/procarray.c
@@ -3174,11 +3174,11 @@ BackendXidGetPid(TransactionId xid)
3174
3175
for (index = 0; index < arrayP->numProcs; index++)
3176
{
3177
- int pgprocno = arrayP->pgprocnos[index];
3178
- PGPROC *proc = &allProcs[pgprocno];
3179
-
3180
if (other_xids[index] == xid)
3181
+ int pgprocno = arrayP->pgprocnos[index];
+ PGPROC *proc = &allProcs[pgprocno];
+
3182
result = proc->pid;
3183
break;
3184
}
0 commit comments