pgsql: Improve BackendXidGetPid() to only access allProcs on matching X
Started by Michael Paquieralmost 3 years ago1 messagescomitters
Improve BackendXidGetPid() to only access allProcs on matching XID
Compilers are able to optimize that, but it makes the code slightly more
readable this way.
Author: Zhao Junwang
Reviewed-by: Ashutosh Bapat
Discussion: /messages/by-id/CAEG8a3+i9gtqF65B+g_puVaCQuf0rZC-EMqMyEjGFJYOqUUWfA@mail.gmail.com
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/e722846daf4a37797ee39bc8ca3e78a4ef437f51
Modified Files
--------------
src/backend/storage/ipc/procarray.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)