Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AllocPartPolicy ¶
type PartitionManager ¶
type PartitionManager struct { ID uint64 //backend ETCD server's ID utils.SafeMutex // contains filtered or unexported fields }
FIXME: 考虑重新分配range partitin的情况, 可能把程序变成单线程server, 避免过多的lock
func NewPartitionManager ¶
func (*PartitionManager) AmLeader ¶
func (pm *PartitionManager) AmLeader() bool
func (*PartitionManager) LeaderLoop ¶
func (pm *PartitionManager) LeaderLoop()
FIXME:put into etcd_op
type SimplePolicy ¶
type SimplePolicy struct{}
Click to show internal directories.
Click to hide internal directories.