forked from TrueCloudLab/frostfs-node
[#242] service/object: Support ContainerID field in local search
Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
parent
511b5f782a
commit
9fb7190358
1 changed files with 1 additions and 2 deletions
|
@ -20,9 +20,8 @@ type localStream struct {
|
|||
|
||||
func (s *localStream) stream(ctx context.Context, ch chan<- []*objectSDK.ID) error {
|
||||
fs := s.query.ToSearchFilters()
|
||||
fs.AddObjectContainerIDFilter(objectSDK.MatchStringEqual, s.cid)
|
||||
|
||||
addrList, err := engine.Select(s.storage, fs)
|
||||
addrList, err := engine.Select(s.storage, s.cid, fs)
|
||||
if err != nil {
|
||||
return errors.Wrapf(err, "(%T) could not select objects from local storage", s)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue