[pgpool-committers: 184] pgpool: Fix load balance in Solaris. If compiled in Solaris, use
Tatsuo Ishii
ishii at postgresql.org
Thu May 10 11:34:50 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
------
master
Details
-------
http://git.postgresql.org/gitweb?p=pgpool2.git;a=commitdiff;h=a7174263552cae162d571e0e97387bd541fa2a27
Modified Files
--------------
child.c | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
More information about the pgpool-committers
mailing list