[Pgcluster-general] Cybercluster possible Bug

Hans-Juergen Schoenig postgres at cybertec.at
Fri Jan 25 13:12:13 UTC 2008


hello ...

hm, let me check what is going in here.

	many thanks for the report,

		hans



On Jan 25, 2008, at 12:57 PM, Lia Domide wrote:

> Hello everybody,
>
>
>
> I am testing now cybercluster.
>
> A problem in “cluster_table.c” (PGRscan_cluster) appears when more  
> than 2 DB nodes are registered to a load-balancer. The code above  
> uses “cnt” variable from 0 to “<= ClusterNum”, and this variable is  
> incremented twice per each iteration. For <=2 nodes is fine, but  
> for >=3 it omits the last nodes.
>
> ClusterTbl * PGRscan_cluster(void){
>
> ……….
>
>     cnt =0
>
>     while ((cnt <= ClusterNum) && (ptr->useFlag != TBL_END)){
>
>          ………
>
>           cnt ++;
>
>           if……
>
>           cnt ++;
>
>            …….
>
>    } // end while
>
> }
>
> One of the “annoying” operations: “cnt++” should be dropped, I think.
>
>
>
>  Have a nice day,
>
>    Lia Domide.
>
> _______________________________________________
> Pgcluster-general mailing list
> Pgcluster-general at pgfoundry.org
> http://pgfoundry.org/mailman/listinfo/pgcluster-general



--
Cybertec Schönig & Schönig GmbH
PostgreSQL Solutions and Support
Gröhrmühlgasse 26, 2700 Wiener Neustadt
Tel: +43/1/205 10 35 / 340
www.postgresql.at, www.cybertec.at


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://pgfoundry.org/pipermail/pgcluster-general/attachments/20080125/1ee744b0/attachment.html 


More information about the Pgcluster-general mailing list