Fix relcache query sometimes sent to other than primary.
authorTatsuo Ishii <ishii@sraoss.co.jp>
Sun, 6 Sep 2020 10:52:56 +0000 (19:52 +0900)
committerTatsuo Ishii <ishii@sraoss.co.jp>
Sun, 6 Sep 2020 10:52:56 +0000 (19:52 +0900)
commit6197ffeca7a68c3c3538c4ab48169ff91b46e6c5
treeb1f52a2d734c5651a44edde8fa8db700f1561fd7
parentf0f5e8d1efd2b188fb080a575143ebd14cbd64f2
Fix relcache query sometimes sent to other than primary.

In streaming replication mode, relcache queries are supposed to be
sent to the primary node.  But actually they were not sent the primary
node if primary node was not the master node. Typically this could
happen when the primary is not node 0.
src/utils/pool_relcache.c