Skip to content

Commit

Permalink
Merge pull request kubernetes#25560 from ping035627/ping035627-patch-3
Browse files Browse the repository at this point in the history
Automatic merge from submit-queue

A optimization for “RegisterCustomFitPredicate” function, avoiding redundancy
  • Loading branch information
k8s-merge-robot committed May 23, 2016
2 parents 086ace4 + 82009eb commit 180ab70
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions plugin/pkg/scheduler/factory/plugins.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ func RegisterCustomFitPredicate(policy schedulerapi.PredicatePolicy) string {
} else if predicateFactory, ok = fitPredicateMap[policy.Name]; ok {
// checking to see if a pre-defined predicate is requested
glog.V(2).Infof("Predicate type %s already registered, reusing.", policy.Name)
return policy.Name
}

if predicateFactory == nil {
Expand Down

0 comments on commit 180ab70

Please sign in to comment.