pub struct MoveCounts {
pub subjects: BTreeMap<String, u64>,
pub rows: BTreeMap<String, u64>,
pub left_behind: BTreeMap<String, u64>,
pub ann_log_appended: u64,
pub live_policies_left_behind: u64,
pub grants_in_force_left_behind: u64,
}Expand description
What a move did, per route and per table.
left_behind is not an error column. A per-namespace aggregate with no
subject cannot be split across a partitioning move; separately identified
operational records have no subject route at all. They stay, and the caller
is told rather than left to discover them.
Fields§
§subjects: BTreeMap<String, u64>Subjects moved, keyed by the rendered route key. A routed class with no rows appears here with zero — that is what makes the map verifiable by its caller, and what makes the same map re-runnable against each backend of a split store.
rows: BTreeMap<String, u64>Rows written, keyed by table. Derived rows appear here and in no route.
left_behind: BTreeMap<String, u64>Rows left where they were, keyed by table, with the reason in the docs above rather than in the data.
ann_log_appended: u64Entries appended to ann_write_log for the source and target namespaces.
live_policies_left_behind: u64Tool policy rows left in the source that are not soft-deleted. Authorization
state is never carried, so these are the rows an operator still has to
decide about; left_behind counts every row that stayed.
grants_in_force_left_behind: u64Tool grant rows left in the source that are in force at the instant the
move judged them (see MoveRequest::now_micros): granted, not
invalidated by a registration, and not expired.
Trait Implementations§
Source§impl Clone for MoveCounts
impl Clone for MoveCounts
Source§impl Debug for MoveCounts
impl Debug for MoveCounts
Source§impl Default for MoveCounts
impl Default for MoveCounts
impl Eq for MoveCounts
Source§impl PartialEq for MoveCounts
impl PartialEq for MoveCounts
impl StructuralPartialEq for MoveCounts
Auto Trait Implementations§
impl Freeze for MoveCounts
impl RefUnwindSafe for MoveCounts
impl Send for MoveCounts
impl Sync for MoveCounts
impl Unpin for MoveCounts
impl UnsafeUnpin for MoveCounts
impl UnwindSafe for MoveCounts
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more