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
This commit is contained in:
Mark Haverkamp 2005-03-22 23:22:34 +00:00
parent 81b83714ec
commit 00fc37a307

View File

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