Skip to content
Snippets Groups Projects

refactor(storage): type-safe access to single fields of peer

Merged Georgy Moshkin requested to merge refactor/storage/peer_access into master
All threads resolved!

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.

Merge request reports

Merge request pipeline #12206 passed

Merge request pipeline passed for a0cd0c89

Approved by

Merged by Georgy MoshkinGeorgy Moshkin 2 years ago (Sep 22, 2022 1:17pm UTC)

Pipeline #12219 canceled

Pipeline canceled for a0cd0c89 on master

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Yaroslav Dynnikov approved this merge request

    approved this merge request

  • Georgy Moshkin resolved all threads

    resolved all threads

  • Please register or sign in to reply
    Loading