[Tarantool-patches] [PATCH 7/7] box: make promote/demote always bump the term
Vladislav Shpilevoy
v.shpilevoy at tarantool.org
Wed Jun 16 00:00:34 MSK 2021
Thanks for the patch!
> diff --git a/src/lib/raft/raft.c b/src/lib/raft/raft.c
> index 247c7a71a..1de05727f 100644
> --- a/src/lib/raft/raft.c
> +++ b/src/lib/raft/raft.c
> @@ -983,8 +983,7 @@ raft_cfg_vclock(struct raft *raft, const struct vclock *vclock)
> void
> raft_new_term(struct raft *raft)
> {
> - if (raft->is_enabled)
> - raft_sm_schedule_new_term(raft, raft->volatile_term + 1);
> + raft_sm_schedule_new_term(raft, raft->volatile_term + 1);
> }
Could you please make it a separate commit + add a unit test?
More information about the Tarantool-patches
mailing list