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:12 +0000 (18:42 +0900)
commitb3a862dc3dae2ca1c49e38eb74f86c6acf9732ea
tree077d58e9988e1fd5004bb576c67c475051a071ec
parentbe3688484c1884aa7bb8aa23501929b5762da8f5
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.
pool_auth.c