Fix: safety issues loading a snapshot.
If snapshot is on the same term, avoid resetting voted_for to prevent an additional vote. If snapshot is on a newer term, reset and persist term and vote.
Please register or sign in to comment
If snapshot is on the same term, avoid resetting voted_for to prevent an additional vote. If snapshot is on a newer term, reset and persist term and vote.