Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix pgpool crash when pgpool child process exits.
When a pgpool child process exits, close_all_backend_connections() is called, which is responsible for closing all connections to backend in the connection pool. It used mistakenly MAIN_CONNECTION macro, which is fine for current active connections but is not good for pooled connections because a main node could be different at the time when the connection pool was created. Fix is using in_use_backend() instead. Reported-by: Emond Papegaaij Backpatch-through: v4.2
- Loading branch information