[#477] metabase: Move MergeSplitInfo
to storage/util pkg
This function already reused in different storage engine parts so it makes sense to keep it in separate package. Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
parent
bc09e29bfd
commit
9a961e21b1
6 changed files with 95 additions and 23 deletions
|
@ -5,8 +5,8 @@ import (
|
|||
|
||||
objectSDK "github.com/nspcc-dev/neofs-api-go/pkg/object"
|
||||
"github.com/nspcc-dev/neofs-node/pkg/core/object"
|
||||
meta "github.com/nspcc-dev/neofs-node/pkg/local_object_storage/metabase"
|
||||
"github.com/nspcc-dev/neofs-node/pkg/local_object_storage/shard"
|
||||
"github.com/nspcc-dev/neofs-node/pkg/local_object_storage/util"
|
||||
"go.uber.org/zap"
|
||||
)
|
||||
|
||||
|
@ -71,7 +71,7 @@ func (e *StorageEngine) Get(prm *GetPrm) (*GetRes, error) {
|
|||
outSI = objectSDK.NewSplitInfo()
|
||||
}
|
||||
|
||||
meta.MergeSplitInfo(siErr.SplitInfo(), outSI)
|
||||
util.MergeSplitInfo(siErr.SplitInfo(), outSI)
|
||||
|
||||
// stop iterating over shards if SplitInfo structure is complete
|
||||
if outSI.Link() != nil && outSI.LastPart() != nil {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue