Permalink
Browse files

Fix the wrong timer assignment while catching up

Signed-off-by: Jiaju Zhang <jjzhang@suse.de>
  • Loading branch information...
1 parent c4098d5 commit 1d86cccaf336ec5e3f37ab064db7e2c0858b3f6c @jjzhang jjzhang committed Jul 6, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/paxos_lease.c
View
@@ -293,7 +293,7 @@ static int lease_catchup(pi_handle_t handle)
}
if (pl->owner == myid) {
- pl->acceptor.timer1 = add_timer(pl->expires - current_time(),
+ pl->acceptor.timer2 = add_timer(pl->expires - current_time(),
(unsigned long)pl,
lease_expires);
if (current_time() < pl->expires - 1 * pl->expiry / 5)
@@ -303,7 +303,7 @@ static int lease_catchup(pi_handle_t handle)
(unsigned long)pl,
renew_expires);
} else
- pl->acceptor.timer1 = add_timer(pl->expires - current_time(),
+ pl->acceptor.timer2 = add_timer(pl->expires - current_time(),
(unsigned long)pl,
lease_expires);
pl->proposer.round = pl->acceptor.round;

0 comments on commit 1d86ccc

Please sign in to comment.