Skip to content

Commit 6970db3

Browse files
committed
metabase,core: share metadata search routine
Add `MetaDataKVHandler` key-value handler that allows searchV2 handling based on filters, cursor and results limit. Logic has not been changed, only necessary sharing adaptions and common vars, func exporting. Refs #3189. Signed-off-by: Pavel Karpy <[email protected]>
1 parent da0b7d7 commit 6970db3

File tree

9 files changed

+976
-840
lines changed

9 files changed

+976
-840
lines changed

cmd/neofs-node/object.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ import (
1414
coreclient "github.com/nspcc-dev/neofs-node/pkg/core/client"
1515
containercore "github.com/nspcc-dev/neofs-node/pkg/core/container"
1616
"github.com/nspcc-dev/neofs-node/pkg/core/netmap"
17+
objectcore "github.com/nspcc-dev/neofs-node/pkg/core/object"
1718
"github.com/nspcc-dev/neofs-node/pkg/local_object_storage/engine"
18-
meta "github.com/nspcc-dev/neofs-node/pkg/local_object_storage/metabase"
1919
morphClient "github.com/nspcc-dev/neofs-node/pkg/morph/client"
2020
cntClient "github.com/nspcc-dev/neofs-node/pkg/morph/client/container"
2121
objectService "github.com/nspcc-dev/neofs-node/pkg/services/object"
@@ -627,7 +627,7 @@ type storageForObjectService struct {
627627
}
628628

629629
// SearchObjects implements [objectService.Storage] interface.
630-
func (x storageForObjectService) SearchObjects(cnr cid.ID, fs objectSDK.SearchFilters, fInt map[int]meta.ParsedIntFilter, attrs []string, cursor *meta.SearchCursor, count uint16) ([]client.SearchResultItem, []byte, error) {
630+
func (x storageForObjectService) SearchObjects(cnr cid.ID, fs objectSDK.SearchFilters, fInt map[int]objectcore.ParsedIntFilter, attrs []string, cursor *objectcore.SearchCursor, count uint16) ([]client.SearchResultItem, []byte, error) {
631631
return x.local.Search(cnr, fs, fInt, attrs, cursor, count)
632632
}
633633

0 commit comments

Comments
 (0)