Documentation ¶
Index ¶
- Variables
- func GetAppliedIndexKey(shardID uint64, key []byte) []byte
- func GetHardStateKey(shardID uint64, replicaID uint64, key []byte) []byte
- func GetMaxIndexKey(shardID uint64, key []byte) []byte
- func GetMetadataIndex(key []byte) (uint64, error)
- func GetMetadataKey(shardID uint64, index uint64, key []byte) []byte
- func GetRaftLogIndex(key []byte) (uint64, error)
- func GetRaftLogKey(shardID uint64, index uint64, key []byte) []byte
- func GetRaftPrefix(shardID uint64) []byte
- func GetShardIDFromAppliedIndexKey(key []byte) (uint64, error)
- func GetShardIDFromMetadataKey(key []byte) (uint64, error)
- func GetSnapshotKey(shardID uint64, index uint64, key []byte) []byte
- func GetStoreIdentKey() []byte
- func IsAppliedIndexKey(key []byte) bool
- func IsMetadataKey(key []byte) bool
- func IsRaftLogKey(key []byte) bool
Constants ¶
This section is empty.
Variables ¶
View Source
var (
// DataPrefixSize data prefix size
DataPrefixSize = dataPrefixKeySize + 8
)
data is in (z, z+1)
View Source
var ( // we use this fixed key to write a dummy record into the KVStore with sync=true // to force a sync of the WAL of the KVStore. ForcedSyncKey = []byte{0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF} )
Functions ¶
func GetAppliedIndexKey ¶
GetAppliedIndexKey returns key that used to store `applied log index` for `storage.DataStorage`
func GetHardStateKey ¶
GetHardStateKey returns key that used to store `raftpb.HardState`
func GetMaxIndexKey ¶
GetMaxIndexKey returns key that used to max applied log index
func GetMetadataIndex ¶
func GetMetadataKey ¶
GetMetadataKey returns key that used to store `shard metadata` for `storage.DataStorage`
func GetRaftLogIndex ¶
func GetRaftLogKey ¶
GetRaftLogKey returns key that used to store `raftpb.Entry`
func GetRaftPrefix ¶
func GetShardIDFromAppliedIndexKey ¶
GetShardIDFromAppliedIndexKey returns shard id
func GetSnapshotKey ¶
GetSnapshotKey returns the key used to store snapshot metadata in LogDB.
func IsAppliedIndexKey ¶
func IsMetadataKey ¶
func IsRaftLogKey ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.