From 9fb7190358cb00b0f59f8acc658cda5d3045658b Mon Sep 17 00:00:00 2001 From: Alex Vanin Date: Thu, 10 Dec 2020 16:25:10 +0300 Subject: [PATCH] [#242] service/object: Support ContainerID field in local search Signed-off-by: Alex Vanin --- pkg/services/object/search/local.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkg/services/object/search/local.go b/pkg/services/object/search/local.go index 3d4800c32..4e9896479 100644 --- a/pkg/services/object/search/local.go +++ b/pkg/services/object/search/local.go @@ -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) }