From 00fc37a30746be5103b83a244e9e18b53865c890 Mon Sep 17 00:00:00 2001 From: Mark Haverkamp Date: Tue, 22 Mar 2005 23:22:34 +0000 Subject: [PATCH] Fix an off by one error causing a bad event ID to be sent after a recovery in some cases. (Logical change 1.155) git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@542 fd59a12c-fef9-0310-b244-a6a79926bd2f --- exec/evt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exec/evt.c b/exec/evt.c index bc271347..3269c1fa 100644 --- a/exec/evt.c +++ b/exec/evt.c @@ -3524,7 +3524,7 @@ static int evt_remote_chan_op(void *msg, struct in_addr source_addr, my_addr.s_addr, base_id); if (cpkt->u.chc_set_id.chc_addr.s_addr == my_addr.s_addr) { - if (cpkt->u.chc_set_id.chc_last_id > base_id) { + if (cpkt->u.chc_set_id.chc_last_id >= base_id) { log_printf(RECOVERY_DEBUG, "Set event ID from %s to %llx\n", inet_ntoa(source_addr), cpkt->u.chc_set_id.chc_last_id);