forked from TrueCloudLab/frostfs-node
[#182] Limit policer object filter to physical stored objects
Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
parent
cf85fa9fab
commit
2e605b2435
1 changed files with 4 additions and 1 deletions
|
@ -14,8 +14,11 @@ func (q *jobQueue) Select(limit int) ([]*object.Address, error) {
|
||||||
// We can prioritize objects for migration, newly arrived objects, etc.
|
// We can prioritize objects for migration, newly arrived objects, etc.
|
||||||
// It is recommended to make changes after updating the metabase
|
// It is recommended to make changes after updating the metabase
|
||||||
|
|
||||||
|
jobFilter := object.NewSearchFilters()
|
||||||
|
jobFilter.AddPhyFilter()
|
||||||
|
|
||||||
// FIXME: add the ability to limit Select result
|
// FIXME: add the ability to limit Select result
|
||||||
res, err := q.localStorage.Select(object.SearchFilters{})
|
res, err := q.localStorage.Select(jobFilter)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue