Unbreak version 2 protocol case.
authorTatsuo Ishii <ishii@postgresql.org>
Thu, 11 Aug 2016 09:35:19 +0000 (18:35 +0900)
committerTatsuo Ishii <ishii@postgresql.org>
Thu, 11 Aug 2016 09:42:06 +0000 (18:42 +0900)
commit78832d967839ac9d4ae2a618d6c421f97f544b22
tree9eeb97727af736514e7793c2af8cdefb620a403a
parent72965cedd55e4cb364c2c8ad7367884374ceeae1
Unbreak version 2 protocol case.

Commit:
https://git.postgresql.org/gitweb/?p=pgpool2.git;a=commit;h=3cbce4eaf870e89fdd8f8a2ad8fab8d3d8aadf65

broke version 2 protocol case. In the session initiation phase,
"MAJOR" macro is used *before* session context is created.  In this
MAJOR macro returns PROTO_MAJOR_V3, which of course breaks v2 protocol
negotiation. Fix is, not to use MAJOR macro here.
src/auth/pool_auth.c