[Tarantool-patches] [PATCH v2 08/11] raft: relay status updates to followers

Serge Petrenko sergepetrenko at tarantool.org
Tue Sep 22 11:47:53 MSK 2020


22.09.2020 01:47, Vladislav Shpilevoy пишет:
>> diff --git a/src/box/applier.cc b/src/box/applier.cc
>> index c1d07ca54..ed76bf2ca 100644
>> --- a/src/box/applier.cc
>> +++ b/src/box/applier.cc
>> @@ -298,6 +299,8 @@ apply_final_join_row(struct xrow_header *row)
>>   	 */
>>   	if (iproto_type_is_synchro_request(row->type))
>>   		return 0;
>> +	if (iproto_type_is_raft_request(row->type))
>> +		return 0;
> It seems we can drop this check, can't we? Because now relay sends raft
> messages only during subscribe phase.
Yep, looks  like so
>>   	struct txn *txn = txn_begin();
>>   	if (txn == NULL)
>>   		return -1;

-- 
Serge Petrenko



More information about the Tarantool-patches mailing list