[Tarantool-patches] [PATCH 7/7] box: make promote/demote always bump the term

Serge Petrenko sergepetrenko at tarantool.org
Fri Jun 18 00:00:21 MSK 2021



16.06.2021 00:00, Vladislav Shpilevoy пишет:
> 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?

Thanks for the reivew!
Sure. Please see v2 of the patchset.

-- 
Serge Petrenko



More information about the Tarantool-patches mailing list