[pve-devel] corosync problems - need help

Dietmar Maurer dietmar at proxmox.com
Tue Sep 16 07:51:07 CEST 2014


> with retry around 65000  (16bits)
> 
> 
> 
> and
>        int retries = 0;
>        result = cpg_join(dfsm->cpg_handle, &dfsm->cpg_group_name);
>         if (result == CPG_ERR_TRY_AGAIN) {
>                 nanosleep(&tvreq, NULL);
>                 ++retries;
>                 if ((retries % 10) == 0)
>                         cfs_dom_message(dfsm->log_domain, "cpg_join retry %d",
> retries);
>                 goto loop;
>         }
> 
> 
> could it be related to retries integer type?

First, int is 32bit. Second, interger overflow does not raise an exception in C.
So that cannot be the reason.


More information about the pve-devel mailing list