[corosync] [PATCH 1/2] Correct nodeid in memb_state_commit_token_send function

Steven Dake sdake at redhat.com
Wed Nov 30 18:20:11 GMT 2011


On 11/30/2011 08:04 AM, Yunkai Zhang wrote:
> 
> Signed-off-by: Yunkai Zhang <qiushu.zyk at taobao.com>
> ---
>  exec/totemsrp.c |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)
> 
> diff --git a/exec/totemsrp.c b/exec/totemsrp.c
> index f29de29..5a78962 100644
> --- a/exec/totemsrp.c
> +++ b/exec/totemsrp.c
> @@ -2925,6 +2925,7 @@ static int memb_state_commit_token_send (
>  	unsigned int commit_token_size;
>  
>  	instance->commit_token->token_seq++;
> +	instance->commit_token->header.nodeid = instance->my_id.addr[0].nodeid;
>  	commit_token_size = sizeof (struct memb_commit_token) +
>  		((sizeof (struct srp_addr) +
>  			sizeof (struct memb_commit_token_memb_entry)) * instance->commit_token->addr_entries);
Thanks
Reviewed-by: Steven Dake <sdake at redhat.com> and merged


More information about the discuss mailing list