[Tarantool-patches] [PATCH v3 06/10] raft: keep track of greatest known term and filter replication sources based on that
Vladislav Shpilevoy
v.shpilevoy at tarantool.org
Sat Apr 17 01:13:03 MSK 2021
>>> + /**
>>> + * Latest terms received with PROMOTE entries from remote instances.
>>> + * Raft uses them to determine data from which sources may be applied.
>>> + */
>>> + struct vclock term_map;
>> 7. I have a feeling it is similar to the limbo's LSN map. Like
>> they should be merged into something one. Can't formulate that
>> properly. I hope we will see it more clear when will move all that
>> to the WAL thread someday.
>
> Yes, they're quite similar.
>
> Do you mean we should create some new structure instead of using vclock for
> these entities? Like something which would incorporate remote state:
> a map of ids with their known terms and confirmed lsns?
Yes, I think we might end up with that. We already have struct replica
doing similar, but they are not in WAL thread.
More information about the Tarantool-patches
mailing list