[#1213] cli: Do not allow to lock EC chunks
Some checks failed
DCO action / DCO (pull_request) Successful in 17m11s
Vulncheck / Vulncheck (pull_request) Successful in 21m23s
Build / Build Components (1.21) (pull_request) Successful in 21m45s
Build / Build Components (1.22) (pull_request) Successful in 22m16s
Tests and linters / Tests (1.21) (pull_request) Failing after 25m46s
Tests and linters / gopls check (pull_request) Successful in 25m37s
Tests and linters / Tests (1.22) (pull_request) Failing after 26m20s
Tests and linters / Lint (pull_request) Successful in 28m14s
Tests and linters / Tests with -race (pull_request) Failing after 28m2s
Tests and linters / Staticcheck (pull_request) Successful in 27m56s
Pre-commit hooks / Pre-commit (pull_request) Successful in 28m33s
Some checks failed
DCO action / DCO (pull_request) Successful in 17m11s
Vulncheck / Vulncheck (pull_request) Successful in 21m23s
Build / Build Components (1.21) (pull_request) Successful in 21m45s
Build / Build Components (1.22) (pull_request) Successful in 22m16s
Tests and linters / Tests (1.21) (pull_request) Failing after 25m46s
Tests and linters / gopls check (pull_request) Successful in 25m37s
Tests and linters / Tests (1.22) (pull_request) Failing after 26m20s
Tests and linters / Lint (pull_request) Successful in 28m14s
Tests and linters / Tests with -race (pull_request) Failing after 28m2s
Tests and linters / Staticcheck (pull_request) Successful in 27m56s
Pre-commit hooks / Pre-commit (pull_request) Successful in 28m33s
Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
This commit is contained in:
parent
6a91df9138
commit
287a2431b7
1 changed files with 4 additions and 1 deletions
|
@ -354,7 +354,7 @@ func collectObjectRelatives(cmd *cobra.Command, cli *client.Client, cnr cid.ID,
|
||||||
|
|
||||||
Prepare(cmd, &prmHead)
|
Prepare(cmd, &prmHead)
|
||||||
|
|
||||||
_, err := internal.HeadObject(cmd.Context(), prmHead)
|
o, err := internal.HeadObject(cmd.Context(), prmHead)
|
||||||
|
|
||||||
var errSplit *objectSDK.SplitInfoError
|
var errSplit *objectSDK.SplitInfoError
|
||||||
var errEC *objectSDK.ECInfoError
|
var errEC *objectSDK.ECInfoError
|
||||||
|
@ -364,6 +364,9 @@ func collectObjectRelatives(cmd *cobra.Command, cli *client.Client, cnr cid.ID,
|
||||||
commonCmd.ExitOnErr(cmd, "failed to get raw object header: %w", err)
|
commonCmd.ExitOnErr(cmd, "failed to get raw object header: %w", err)
|
||||||
case err == nil:
|
case err == nil:
|
||||||
common.PrintVerbose(cmd, "Raw header received - object is singular.")
|
common.PrintVerbose(cmd, "Raw header received - object is singular.")
|
||||||
|
if ech := o.Header().ECHeader(); ech != nil {
|
||||||
|
commonCmd.ExitOnErr(cmd, "Lock EC chunk failed: %w", errors.ErrUnsupported)
|
||||||
|
}
|
||||||
return nil
|
return nil
|
||||||
case errors.As(err, &errSplit):
|
case errors.As(err, &errSplit):
|
||||||
common.PrintVerbose(cmd, "Split information received - object is virtual.")
|
common.PrintVerbose(cmd, "Split information received - object is virtual.")
|
||||||
|
|
Loading…
Reference in a new issue