Make failover in progress check more aggressively.
authorTatsuo Ishii <ishii@sraoss.co.jp>
Wed, 22 May 2019 22:34:03 +0000 (07:34 +0900)
committerTatsuo Ishii <ishii@sraoss.co.jp>
Wed, 22 May 2019 22:34:03 +0000 (07:34 +0900)
commitad211b91efadebe35eac629e61e865281040702b
tree9120c09f7596a928b781010610ef484db4409cb1
parent82b5392bd84f3680cc39874b70faa05f44640e1f
Make failover in progress check more aggressively.

In pool_virtual_master_db_node_id() the case when session context is
not available was not covered by the failover in progress checking
because I thought it'd be too aggressive. However a report from field
showed that that could happen while authenticating a client (and it
causes a segfault). So I decided to move the check to beginning of the
function to cover the case.
src/context/pool_query_context.c