Skip to content

Commit

Permalink
server: fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
huachaohuang committed Oct 21, 2016
1 parent 9b99e96 commit 22b44ac
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions server/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ func (c *RaftCluster) GetRegionByID(regionID uint64) (*metapb.Region, *metapb.Pe
}

// GetRegion returns the region from cluster.
func (c *RaftCluster) GetRegion(regionID uint64) *regionInfo {
func (c *RaftCluster) getRegionByID(regionID uint64) *regionInfo {
return c.cachedCluster.getRegion(regionID)
}

Expand Down Expand Up @@ -629,7 +629,7 @@ func (c *RaftCluster) putConfig(meta *metapb.Cluster) error {
// NewAddPeerOperator creates an operator to add a peer to the region.
// If storeID is 0, it will be chosen according to the balance rules.
func (c *RaftCluster) NewAddPeerOperator(regionID uint64, storeID uint64) (Operator, error) {
region := c.GetRegion(regionID)
region := c.getRegionByID(regionID)
if region == nil {
return nil, errRegionNotFound(regionID)
}
Expand Down Expand Up @@ -681,7 +681,7 @@ func (c *RaftCluster) NewRemovePeerOperator(regionID uint64, peerID uint64) (Ope

// SetAdminOperator sets the balance operator of the region.
func (c *RaftCluster) SetAdminOperator(regionID uint64, ops []Operator) error {
region := c.GetRegion(regionID)
region := c.getRegionByID(regionID)
if region == nil {
return errRegionNotFound(regionID)
}
Expand Down

0 comments on commit 22b44ac

Please sign in to comment.