pgpool2.git / summary / log / commit / refs

commit    f25610a6fd67e4c3e2a789c19cbb7855d5194560
Author:   Yoshiyuki Asaba <y-asaba at pgfoundry.org>
Date:     Thu May 08 03:02:04 2008 +0000

    Fix segfault if all weight values are zero and master node is down.
    Perf report by Michael SALOMON.


child.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/child.c b/child.c index 86759162e..d67556710 100644 --- a/child.c +++ b/child.c @@ -1757,7 +1757,7 @@ int select_load_balancing_node(void) int i; /* choose a backend in random manner with weight */ - selected_slot = 0; + selected_slot = MASTER_NODE_ID; total_weight = 0.0; for (i=0;i<NUM_BACKENDS;i++) [parent: 291ebf81baf0]