Do not allow to delete or lock EC chunks #1213

Merged
fyrchik merged 4 commits from dstepanov-yadro/frostfs-node:fix/lock_ec_chunk into master 2024-07-01 06:49:41 +00:00
Showing only changes of commit 77866f6715 - Show all commits

View file

@ -151,18 +151,3 @@ func Head(ctx context.Context, storage *StorageEngine, addr oid.Address) (*objec
return res.Header(), nil return res.Header(), nil
} }
// HeadRaw reads object header from local storage by provided address and raw
// flag.
func HeadRaw(ctx context.Context, storage *StorageEngine, addr oid.Address, raw bool) (*objectSDK.Object, error) {
var headPrm HeadPrm
headPrm.WithAddress(addr)
headPrm.WithRaw(raw)
res, err := storage.Head(ctx, headPrm)
if err != nil {
return nil, err
}
return res.Header(), nil
}