Struct resolved_ts::advance::AdvanceTsWorker [−][src]
Fields
store_meta: Arc<Mutex<StoreMeta>>
pd_client: Arc<dyn PdClient>
timer: SteadyTimer
worker: Runtime
raft_router: T
advance_ts_interval: Duration
scheduler: Scheduler<Task<E::Snapshot>>
concurrency_manager: ConcurrencyManager
The concurrency manager for transactions. It’s needed for CDC to check locks when calculating resolved_ts.
hibernate_regions_compatible: bool
tikv_clients: Arc<Mutex<HashMap<u64, TikvClient>>>
env: Arc<Environment>
security_mgr: Arc<SecurityManager>
Implementations
impl<T, E: KvEngine> AdvanceTsWorker<T, E>
[src][−]
pub fn new(
pd_client: Arc<dyn PdClient>,
scheduler: Scheduler<Task<E::Snapshot>>,
raft_router: T,
store_meta: Arc<Mutex<StoreMeta>>,
concurrency_manager: ConcurrencyManager,
env: Arc<Environment>,
security_mgr: Arc<SecurityManager>,
advance_ts_interval: Duration,
hibernate_regions_compatible: bool
) -> Self
[src]
pd_client: Arc<dyn PdClient>,
scheduler: Scheduler<Task<E::Snapshot>>,
raft_router: T,
store_meta: Arc<Mutex<StoreMeta>>,
concurrency_manager: ConcurrencyManager,
env: Arc<Environment>,
security_mgr: Arc<SecurityManager>,
advance_ts_interval: Duration,
hibernate_regions_compatible: bool
) -> Self
impl<T: 'static + RaftStoreRouter<E>, E: KvEngine> AdvanceTsWorker<T, E>
[src][−]
pub fn register_advance_event(&self, regions: Vec<u64>)
[src]
async fn region_resolved_ts_raft(
regions: Vec<u64>,
raft_router: T,
min_ts: TimeStamp
) -> Vec<u64>
[src]
regions: Vec<u64>,
raft_router: T,
min_ts: TimeStamp
) -> Vec<u64>
async fn region_resolved_ts_store(
regions: Vec<u64>,
store_meta: Arc<Mutex<StoreMeta>>,
pd_client: Arc<dyn PdClient>,
security_mgr: Arc<SecurityManager>,
env: Arc<Environment>,
cdc_clients: Arc<Mutex<HashMap<u64, TikvClient>>>,
min_ts: TimeStamp
) -> Vec<u64>
[src]
regions: Vec<u64>,
store_meta: Arc<Mutex<StoreMeta>>,
pd_client: Arc<dyn PdClient>,
security_mgr: Arc<SecurityManager>,
env: Arc<Environment>,
cdc_clients: Arc<Mutex<HashMap<u64, TikvClient>>>,
min_ts: TimeStamp
) -> Vec<u64>
Auto Trait Implementations
impl<T, E> !RefUnwindSafe for AdvanceTsWorker<T, E>
impl<T, E> Send for AdvanceTsWorker<T, E> where
T: Send,
T: Send,
impl<T, E> Sync for AdvanceTsWorker<T, E> where
T: Sync,
T: Sync,
impl<T, E> Unpin for AdvanceTsWorker<T, E> where
T: Unpin,
T: Unpin,
impl<T, E> !UnwindSafe for AdvanceTsWorker<T, E>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src][+]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<V, W> ConvertFrom<W> for V where
W: ConvertTo<V>,
[src][+]
W: ConvertTo<V>,
impl<T> From<T> for T
[src][+]
impl<T> Instrument for T
[src][+]
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<T> Pointable for T
[src][+]
impl<T> Pointable for T
[src][+]
impl<T> Same<T> for T
[src]
type Output = T
Should always be Self
impl<T> Sealed<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[src][+]
V: MultiLane<T>,