Fix find_primary_node() return value in commit f0631a6.
authorTatsuo Ishii <ishii@postgresql.org>
Thu, 28 Jun 2018 02:30:01 +0000 (11:30 +0900)
committerTatsuo Ishii <ishii@postgresql.org>
Thu, 28 Jun 2018 02:30:01 +0000 (11:30 +0900)
commite92856835f77f1458d5c7834cd9ad09979c61f2e
tree7672e65daf14678cef3994a463f75126a9f8ec50
parent1b4a564c849142e4947a9f61d13561816823994e
Fix find_primary_node() return value in commit f0631a6.

In this commit find_primary_node() returns 0, rather than -1 if no
primary node exists. This is not correct and should be set to -1.
Also fix some thinko in this commit.

Problem pointed out by Muhammad Usama.
src/main/pgpool_main.c