[Tarantool-patches] [PATCH 11/11] raft: drop redundant argument
Serge Petrenko
sergepetrenko at tarantool.org
Fri Nov 13 13:18:54 MSK 2020
12.11.2020 22:51, Cyrill Gorcunov пишет:
> It is never used and placed here accidentally.
>
> Signed-off-by: Cyrill Gorcunov <gorcunov at gmail.com>
> ---
> src/box/raft.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/box/raft.c b/src/box/raft.c
> index ff664a4d1..3f175480c 100644
> --- a/src/box/raft.c
> +++ b/src/box/raft.c
> @@ -772,7 +772,7 @@ raft_sm_schedule_new_term(struct raft *raft, uint64_t new_term)
> static void
> raft_sm_schedule_new_vote(struct raft *raft, uint32_t new_vote)
> {
> - say_info("RAFT: vote for %u, follow", new_vote, raft->volatile_term);
> + say_info("RAFT: vote for %u, follow", new_vote);
> assert(raft->volatile_vote == 0);
> assert(raft->leader == 0);
> assert(raft->state == RAFT_STATE_FOLLOWER);
LGTM
--
Serge Petrenko
More information about the Tarantool-patches
mailing list