[pgpool-committers: 186] 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_0_STABLE
Details
-------
http://git.postgresql.org/gitweb?p=pgpool2.git;a=commitdiff;h=2d0b9c53abf0f396992be2b4369ed77bb0a2461e
Modified Files
--------------
child.c | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
More information about the pgpool-committers
mailing list