[Pacemaker] [Question] About the rotation of the pe-file.
renayama19661014 at ybb.ne.jp
renayama19661014 at ybb.ne.jp
Sun Jan 15 23:56:45 UTC 2012
Hi Lars,
Hi Andrew,
> If you want it to be between [0, max-1],
> obviously that should be
> while(max > 0 && sequence >= max) {
> sequence -= max;
> }
Thanks!!I try it.
> Though I wonder why not simply:
> if (max == 0)
> return;
> if (sequence > max)
> sequence = 0;
I wondered, too.
However, I thought that a cord of Mr. Andrew might have some special specifications.
Best Regards,
Hideo Yamauchi.
--- On Sat, 2012/1/14, Lars Ellenberg <lars.ellenberg at linbit.com> wrote:
> On Fri, Jan 06, 2012 at 10:12:06AM +0900, renayama19661014 at ybb.ne.jp wrote:
> > Hi Andrew,
> >
> > Thank you for comments.
> >
> > > Could you try with:
> > >
> > > while(max >= 0 && sequence > max) {
> > >
> >
> > The problem is not settled by this correction.
> > The rotation is carried out with a value except 0.
>
> If you want it to be between [0, max-1],
> obviously that should be
> while(max > 0 && sequence >= max) {
> sequence -= max;
> }
>
> Though I wonder why not simply:
> if (max == 0)
> return;
> if (sequence > max)
> sequence = 0;
>
>
> --
> : Lars Ellenberg
> : LINBIT | Your Way to High Availability
> : DRBD/HA support and consulting http://www.linbit.com
>
> _______________________________________________
> Pacemaker mailing list: Pacemaker at oss.clusterlabs.org
> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
>
> Project Home: http://www.clusterlabs.org
> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
> Bugs: http://bugs.clusterlabs.org
>
More information about the Pacemaker
mailing list