[pgpool-committers: 185] pgpool: Fix load balance in Solaris. If compiled in Solaris, use

Tatsuo Ishii ishii at postgresql.org
Thu May 10 11:41:43 JST 2012


Fix load balance in Solaris.  If compiled in Solaris, use
srand()/rand() instead of srandom()/random().  Problem is, random() in
Solaris does not respect RAND_MAX (it's 2^16-1 in Solaris). So using
random() in Solaris results in strange load balancing calculation.
Use srand()/rand() instead although they produce lesser quality random
numbers. Problem reported at [pgpool-general: 396].

Branch
------
V3_1_STABLE

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

Modified Files
--------------
child.c |   10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)



More information about the pgpool-committers mailing list