pub struct D34Shards;Expand description
The D34 shard map. Fan-outs and head/packmap co-location are permanent storage contracts; changing them would strand existing rows.
Trait Implementations§
impl Copy for D34Shards
impl Eq for D34Shards
Source§impl ShardMap for D34Shards
impl ShardMap for D34Shards
Source§fn ref_shard(&self, repo: &RepoId, ref_name: &str) -> Partition
fn ref_shard(&self, repo: &RepoId, ref_name: &str) -> Partition
The ref shard of
ref_name: its head, replay records and quota
counters. A branch head and its packmap MUST map to the same shard,
so an AdvanceRefs commits in one batch.Source§fn coordinator(&self, ns: &NamespaceKey) -> Partition
fn coordinator(&self, ns: &NamespaceKey) -> Partition
The namespace coordinator: configuration and the grant epoch.
Source§fn ref_index(&self, repo: &RepoId, ref_name: &str) -> Partition
fn ref_index(&self, repo: &RepoId, ref_name: &str) -> Partition
The ref-name index shard that holds
ref_name.Source§fn ref_index_partitions(&self, repo: &RepoId) -> Vec<Partition>
fn ref_index_partitions(&self, repo: &RepoId) -> Vec<Partition>
Every ref-name index shard of
repo, in bucket order.impl StructuralPartialEq for D34Shards
Auto Trait Implementations§
impl Freeze for D34Shards
impl RefUnwindSafe for D34Shards
impl Send for D34Shards
impl Sync for D34Shards
impl Unpin for D34Shards
impl UnsafeUnpin for D34Shards
impl UnwindSafe for D34Shards
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more