Minor refactoring of assign_backendlist_entry()

Heikki Linnakangas <heikki.linnakangas@iki.fi>

Commit: 63bef4df975cd8b0a3fee1384a80c569043a6d72
Author: Heikki Linnakangas <heikki.linnakangas@iki.fi>
Date: 2024-08-01T20:23:55Z
Releases: 18.0
Minor refactoring of assign_backendlist_entry()

Make assign_backendlist_entry() responsible just for allocating the
Backend struct. Linking it to the RegisteredBgWorker is the caller's
responsibility now. Seems more clear that way.

Discussion: https://www.postgresql.org/message-id/835232c0-a5f7-4f20-b95b-5b56ba57d741@iki.fi

Files

PathChange+/−
src/backend/postmaster/postmaster.c modified +12 −13

Discussion