This reverts commit
2b0ba0f30631b6e8604910542b218abb8107b1be.
Per discussion: [pgpool-general: 9265] Re: Segmentation fault during shutdown
https://www.pgpool.net/pipermail/pgpool-general/2024-November/001942.html
memcached_disconnect();
}
- /*
- * We used to call close_all_backend_connections() here so that we send
- * 'X' (terminate) message to backend. However it was possible that the
- * function is called while initializing the connection pool object, which
- * leads to crash. So we stopped to call close_all_backend_connections().
- */
+ /* let backend know now we are exiting */
+ if (pool_connection_pool)
+ close_all_backend_connections();
}
/*