Fix pcp_detach_node hung when -g option is specified.
authorTatsuo Ishii <ishii@postgresql.org>
Thu, 12 Apr 2018 23:00:24 +0000 (08:00 +0900)
committerTatsuo Ishii <ishii@postgresql.org>
Thu, 12 Apr 2018 23:00:24 +0000 (08:00 +0900)
commiteb54a763a856778f110832a52b19a5f42fa1db0b
tree0c68821f00d5a3cd9379d14712519b178cbbba0f
parentf0631a6f260530616a5eb16b1538c2eb15abbac2
Fix pcp_detach_node hung when -g option is specified.

"pcp_detach_node -g" had been broken since 3.7. The cause was a misuse
of degenerate_backend_set_ex(). Because of this, actual failover
request was not sent to the pgpool main process. As a result,
pcp_worker process waited vainly for a signal arriving from the
process.

Per bug 391. Problem reported by Tomoyuki Sato, fix by me.
src/pcp_con/pcp_worker.c