Merge pull request #25560 from ping035627/ping035627-patch-3

Automatic merge from submit-queue

A optimization for “RegisterCustomFitPredicate” function, avoiding redundancy
This commit is contained in:
k8s-merge-robot 2016-05-22 19:37:23 -07:00
commit 180ab70df0

View File

@ -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 {