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

Yunkai Zhang qiushu.zyk at taobao.com
Wed Nov 30 15:04:20 GMT 2011


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);
-- 
1.7.7.3



More information about the discuss mailing list