[pgpool-committers: 850] pgpool: Fix to calculate replication delay only if standby server is

Yugo Nagata nagata at sraoss.co.jp
Fri Mar 29 21:52:43 JST 2013


Fix to calculate replication delay only if standby server is
behind from the primay server.

When the primary server is behind from standby server, negative
value of delay is calculated and the value is assigned to unsigned
variable. It causes a log message informing negative replication
delay. And what is worse, it also causes SELECT queries to be sent
to the primary in load balance even though there are no replication
delay in fact.

The problem is reported and analyzed by Saitoh Hidenori in
[pgpoolgenera-jp: 1145]. (in Japanese)

Branch
------
V3_2_STABLE

Details
-------
http://git.postgresql.org/gitweb?p=pgpool2.git;a=commitdiff;h=90fe3484ee211ca0b5e341e6a3933d3619be9c82

Modified Files
--------------
pool_worker_child.c |    7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)



More information about the pgpool-committers mailing list