replicate

package
v4.0.0-rc.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 3, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ModeManager

type ModeManager struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

ModeManager is used to control how raft logs are synchronized between different tikv nodes.

func NewReplicateModeManager

func NewReplicateModeManager(config config.ReplicateModeConfig, storage *core.Storage, idAlloc id.Allocator, stores core.StoreSetInformer) (*ModeManager, error)

NewReplicateModeManager creates the replicate mode manager.

func (*ModeManager) GetReplicateStatus

func (m *ModeManager) GetReplicateStatus() *pb.ReplicateStatus

GetReplicateStatus returns the status to sync with tikv servers.

func (*ModeManager) Run

func (m *ModeManager) Run(quit chan struct{})

Run starts the background job.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL