Skip to content

Commit

Permalink
Medium: mcp: 5 retries is plenty for sending CPG messages
Browse files Browse the repository at this point in the history
Mercurial revision: b230ffa2ecdc5908a9c75fb1397ecabe73fce632
  • Loading branch information
beekhof committed Jul 12, 2010
1 parent 592ade6 commit 2d4e858
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mcp/corosync.c
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,8 @@ gboolean send_cpg_message(struct iovec *iov)

errno = 0;
cs_repeat(
retries, 30, rc = cpg_mcast_joined(cpg_handle, CPG_TYPE_AGREED, iov, 1));
/* 5 retires is plenty, we'll resend once the membership reforms anyway */
retries, 5, rc = cpg_mcast_joined(cpg_handle, CPG_TYPE_AGREED, iov, 1));

if(rc != CS_OK) {
crm_perror(LOG_ERR,"Sending message via cpg FAILED: (rc=%d) %s",
Expand Down

0 comments on commit 2d4e858

Please sign in to comment.