1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
// Copyright 2019 TiKV Project Authors. Licensed under Apache-2.0. //! Resolved TS is a timestamp that represents the lower bonud of incoming Commit TS // and the upper bound of outgoing Commit TS. //! Through this timestamp we can get a consistent view in the transaction level. //! //! To maintain a correct Resolved TS, these premises must be satisfied: //! 1. Tracing all locks in the region, use the minimal Start TS as Resolved TS. //! 2. If there is not any lock, use the latest timestamp as Resolved TS. //! 3. Resolved TS must be advanced by the region leader after it has applied on its term. #![feature(box_patterns)] #[macro_use] extern crate tikv_util; mod resolver; pub use resolver::*; mod cmd; pub use cmd::*; mod observer; pub use observer::*; mod advance; pub use advance::*; mod sinker; pub use sinker::*; mod endpoint; pub use endpoint::*; mod errors; pub use errors::*; mod scanner; pub use scanner::*; mod metrics; pub use metrics::*;