add PartialEq, Eq and spell correction (#26614)
This commit is contained in:
parent
3e9bd6170c
commit
819d6512ab
|
@ -72,7 +72,7 @@ pub type SlotSlice<'s, T> = &'s [(Slot, T)];
|
||||||
pub type RefCount = u64;
|
pub type RefCount = u64;
|
||||||
pub type AccountMap<V> = Arc<InMemAccountsIndex<V>>;
|
pub type AccountMap<V> = Arc<InMemAccountsIndex<V>>;
|
||||||
|
|
||||||
#[derive(Debug, Clone, Copy)]
|
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
|
||||||
/// how accounts index 'upsert' should handle reclaims
|
/// how accounts index 'upsert' should handle reclaims
|
||||||
pub enum UpsertReclaim {
|
pub enum UpsertReclaim {
|
||||||
/// previous entry for this slot in the index is expected to be cached, so irrelevant to reclaims
|
/// previous entry for this slot in the index is expected to be cached, so irrelevant to reclaims
|
||||||
|
@ -80,7 +80,7 @@ pub enum UpsertReclaim {
|
||||||
/// previous entry for this slot in the index may need to be reclaimed, so return it.
|
/// previous entry for this slot in the index may need to be reclaimed, so return it.
|
||||||
/// reclaims is the only output of upsert, requiring a synchronous execution
|
/// reclaims is the only output of upsert, requiring a synchronous execution
|
||||||
PopulateReclaims,
|
PopulateReclaims,
|
||||||
/// overwrite existing data in the same slot and do not return in 'relaims'
|
/// overwrite existing data in the same slot and do not return in 'reclaims'
|
||||||
IgnoreReclaims,
|
IgnoreReclaims,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue