Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHeikki Linnakangas2024-11-04 14:20:57 +0000
committerHeikki Linnakangas2024-11-04 14:20:57 +0000
commit0464f25b6aa156228982efd46303e8c8dd25cccc (patch)
tree5cc392d6bd5f54252920049eedda215e9980bd3a /src/backend/tcop/postgres.c
parent62620b6aadcedf453989e6b426f6ef3284c64bed (diff)
Set MyProc->heldLocks in ProcSleep
Previously, ProcSleep()'s caller was responsible for setting MyProc->heldLocks, and we had comments to remind about that. But it seems simpler to make ProcSleep() itself responsible for it. ProcSleep() already set the other info about the lock its waiting for (waitLock, waitProcLock and waitLockMode), so it is natural for it to set heldLocks too. Reviewed-by: Maxim Orlov Discussion: https://www.postgresql.org/message-id/7c2090cd-a72a-4e34-afaa-6dd2ef31440e@iki.fi
Diffstat (limited to 'src/backend/tcop/postgres.c')
0 files changed, 0 insertions, 0 deletions