Move canAcceptConnections check from ProcessStartupPacket to caller.
Heikki Linnakangas <heikki.linnakangas@iki.fi>
Move canAcceptConnections check from ProcessStartupPacket to caller. The check is not about processing the startup packet, so the calling function seems like a more natural place. I'm also working on a patch that moves 'canAcceptConnections' out of the Port struct, and this makes that refactoring more convenient. Reviewed-by: Tristan Partin Discussion: https://www.postgresql.org/message-id/7a59b073-5b5b-151e-7ed3-8b01ff7ce9ef@iki.fi
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/postmaster/postmaster.c | modified | +43 −43 |
Discussion
- Refactoring backend fork+exec code 63 messages · 2023-06-18 → 2024-07-03