mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-10-25 10:16:12 +08:00
fix(scheduler): clean expire cache before schedule
This commit is contained in:
@@ -168,6 +168,7 @@ func (p *DiskSchedtagPredicate) DoSelect(
|
||||
res []ISchedtagCandidateResource,
|
||||
) []ISchedtagCandidateResource {
|
||||
return p.GetUsedStorages(res, input.(*diskW).Backend)
|
||||
|
||||
}
|
||||
|
||||
func (p *DiskSchedtagPredicate) GetCandidateResourceSortScore(selectRes ISchedtagCandidateResource) int64 {
|
||||
@@ -207,8 +208,8 @@ func (p *DiskSchedtagPredicate) GetUsedStorages(res []ISchedtagCandidateResource
|
||||
} else {
|
||||
backendStorages = storages
|
||||
}
|
||||
if len(backendStorages) == 0 {
|
||||
/*if len(backendStorages) == 0 {
|
||||
backendStorages = storages
|
||||
}
|
||||
}*/
|
||||
return backendStorages
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user