[Pacemaker] [Question] About the rotation of the pe-file.

Andrew Beekhof andrew at beekhof.net
Thu Jan 5 19:26:17 EST 2012


On Thu, Jan 5, 2012 at 12:35 PM,  <renayama19661014 at ybb.ne.jp> wrote:
> Hi All,
>
> Stored pe files usually begin with the zeroth.
> However, when I make pe-input-series-max=2, the rotation is carried out between 1 and 2, but is not performed with 0.
>
> Is it specifications that is not rotated with 0?
>
> I confirmed that 0 was not used by the next calculation.
>
> void
> write_last_sequence(
>        const char *directory, const char *series, int sequence, int max)
> {
>        int rc = 0;
>        int len = 36;
>        FILE *file_strm = NULL;
>        char *series_file = NULL;
>
>        CRM_CHECK(directory  != NULL, return);
>        CRM_CHECK(series != NULL, return);
>
>        if(max == 0) {
>                return;
>        }
>        while(max > 0 && sequence > max) {
>                sequence -= max;
>        }

Could you try with:

        while(max >= 0 && sequence > max) {

> (snip)
>
>
> Best Regards,
> Hideo Yamauchi.
>
>
> _______________________________________________
> 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