forked from TrueCloudLab/frostfs-node
[#1418] meta: Do not use pointers as parameters
Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
This commit is contained in:
parent
a46f585fb3
commit
6d4d920bad
4 changed files with 3 additions and 4 deletions
|
@ -61,7 +61,7 @@ func (db *DB) Delete(prm DeletePrm) (*DeleteRes, error) {
|
||||||
storagelog.OpField("metabase DELETE"))
|
storagelog.OpField("metabase DELETE"))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return new(DeleteRes), err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
func (db *DB) deleteGroup(tx *bbolt.Tx, addrs []oid.Address) error {
|
func (db *DB) deleteGroup(tx *bbolt.Tx, addrs []oid.Address) error {
|
||||||
|
|
|
@ -54,7 +54,7 @@ func (p *SelectPrm) WithFilters(fs object.SearchFilters) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// AddressList returns list of addresses of the selected objects.
|
// AddressList returns list of addresses of the selected objects.
|
||||||
func (r *SelectRes) AddressList() []oid.Address {
|
func (r SelectRes) AddressList() []oid.Address {
|
||||||
return r.addrList
|
return r.addrList
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -25,7 +25,7 @@ func (p *IsSmallPrm) WithAddress(addr oid.Address) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// BlobovniczaID returns blobovnicza identifier.
|
// BlobovniczaID returns blobovnicza identifier.
|
||||||
func (r *IsSmallRes) BlobovniczaID() *blobovnicza.ID {
|
func (r IsSmallRes) BlobovniczaID() *blobovnicza.ID {
|
||||||
return r.id
|
return r.id
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -119,7 +119,6 @@ func (s *Shard) ListWithCursor(prm ListWithCursorPrm) (*ListWithCursorRes, error
|
||||||
var metaPrm meta.ListPrm
|
var metaPrm meta.ListPrm
|
||||||
metaPrm.WithCount(prm.count)
|
metaPrm.WithCount(prm.count)
|
||||||
metaPrm.WithCursor(prm.cursor)
|
metaPrm.WithCursor(prm.cursor)
|
||||||
|
|
||||||
res, err := s.metaBase.ListWithCursor(metaPrm)
|
res, err := s.metaBase.ListWithCursor(metaPrm)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, fmt.Errorf("could not get list of objects: %w", err)
|
return nil, fmt.Errorf("could not get list of objects: %w", err)
|
||||||
|
|
Loading…
Reference in a new issue