[#182] Limit policer object filter to physical stored objects

Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
Alex Vanin 2020-11-19 15:45:08 +03:00 committed by Alex Vanin
parent cf85fa9fab
commit 2e605b2435

View file

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