Module raftstore::store::util [−][src]
Structs
AdminCmdEpochState | |
KeysInfoFormatter | |
Lease | Lease records an expired time, for examining the current moment is in lease or not. It’s dedicated to the Raft leader lease mechanism, contains either state of |
MsgType | |
ReadState | |
RegionReadProgress |
|
RegionReadProgressCore | |
RemoteLease | A remote lease, it can only be derived by |
Enums
ConfChangeKind | |
LeaseState |
Constants
MSEC_PER_SEC | |
NSEC_PER_MSEC | |
STR_CONF_CHANGE_ADDLEARNER_NODE | |
STR_CONF_CHANGE_ADD_NODE | |
STR_CONF_CHANGE_REMOVE_NODE | |
TIMESPEC_NSEC_MASK | |
TIMESPEC_NSEC_SHIFT | |
TIMESPEC_SEC_SHIFT |
Statics
NORMAL_REQ_CHECK_CONF_VER | |
NORMAL_REQ_CHECK_VER | WARNING: |
Traits
ChangePeerI | Abstracts over ChangePeerV2Request and (legacy) ChangePeerRequest to allow treating them in a unified manner. |
Functions
admin_cmd_epoch_lookup | WARNING: the existing settings below MUST NOT be changed!!!
Changing any admin cmd’s |
build_key_range | |
check_key_in_region | Check if key in region range [ |
check_key_in_region_exclusive | Check if key in region range ( |
check_key_in_region_inclusive | Check if key in region range [ |
check_peer_id | |
check_region_epoch | |
check_store_id | |
check_term | |
compare_region_epoch | |
conf_change_type_str | |
conf_state_from_region | |
find_peer | |
find_peer_mut | |
integration_on_half_fail_quorum_fn | |
is_epoch_stale | |
is_first_append_entry |
|
is_first_message | |
is_first_vote_msg |
|
is_initial_msg |
|
is_learner | |
is_region_initialized | |
is_sibling_regions | Check if two regions are sibling. |
is_vote_msg | |
new_learner_peer | |
new_peer | |
parse_data_at | Parse data of entry |
region_on_same_stores | Check if replicas of two regions are on the same stores. |
remove_peer | |
timespec_to_u64 | Convert Timespec to u64. It’s millisecond precision and covers a range of about 571232829 years in total. |
u64_to_timespec | Convert Timespec to u64. |