- Sep 21, 2022
-
-
Georgy Moshkin authored
-
Georgy Moshkin authored
-
Georgy Moshkin authored
-
Georgy Moshkin authored
Every field of Peer now has a corresponding unit struct defined in the `peer_field` module, which implements the `PeerFieldDef` trait which in turn contains information about the field's name, tarantool type and rust type. This information currently is used in the `field_by_raft_id` method and is generated by the `define_peer_fields` macro, which also automates the generation of the format (`peer_format` function) for the "raft_group" space.
-
Georgy Moshkin authored
-
Georgy Moshkin authored
-
- Sep 20, 2022
-
-
-
Georgy Moshkin authored
-
Georgy Moshkin authored
-
-
-
-
-
Exit only after processing `light_ready`. It doesn't affect much the behavior, but simplifies main_loop decomposition.
-
-
-
-
-
-
-
-
-
-
Valentin Syrovatskiy authored
-
- Sep 16, 2022
-
-
Yaroslav Dynnikov authored
`KVCell` contains an optional value and provides access by key in two flavors: ```rust fn take_or_drop(&mut self, key: &K) -> Option<T> fn take_or_keep(&mut self, key: &K) -> Option<T> ``` Both return `Some` value only if provided key matches the contained one. The behavior differs when the provided key doesn't match: - `take_or_drop` always leaves the cell empty. It supersedes `CachedCell` and copies its behavior. - `take_or_keep` retains contained value. It's a replacement for `JointStateLatch`.
-
- Sep 15, 2022
-
-
Yaroslav Dynnikov authored
Single-out ConfChange generation logics into a separate clean function.
-
Yaroslav Dynnikov authored
-
replication_factor now goes into cluster_state
-
Georgy Moshkin authored
-
- Sep 14, 2022
-
-
Yaroslav Dynnikov authored
-
Georgy Moshkin authored
-
Georgy Moshkin authored
-
- Sep 13, 2022
-
-
The final goal is to encapsulate access to Storage, but at first we split it into two parts - one for raft data, and another one for picodata stuff. This patch introduces the first one - RaftSpaceAccess. It isn't used in code yet, but already displays the future API.
-
Georgy Moshkin authored
-
Georgy Moshkin authored
-
-
-
- Sep 12, 2022
-
-
Georgy Moshkin authored
-
- Sep 08, 2022
-
-
Georgy Moshkin authored
-
Yaroslav Dynnikov authored
If makes the code neater.
-