Skip to content

Commit

Permalink
address comments
Browse files Browse the repository at this point in the history
Signed-off-by: nolouch <nolouch@gmail.com>
  • Loading branch information
nolouch committed Dec 15, 2019
1 parent 2db1005 commit 707f8b6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server/core/basic_cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,7 @@ func (bc *BasicCluster) TakeStore(storeID uint64) *StoreInfo {
return bc.Stores.TakeStore(storeID)
}

// PreCheckPutRegioion checks if the region is valid to put.
func (bc *BasicCluster) PreCheckPutRegion(region *RegionInfo) (*RegionInfo, error) {
bc.RLock()
for _, item := range bc.Regions.GetOverlaps(region) {
Expand Down

0 comments on commit 707f8b6

Please sign in to comment.