Compare commits
1 commit
master
...
fix/ignore
Author | SHA1 | Date | |
---|---|---|---|
555b8e85ff |
1 changed files with 2 additions and 1 deletions
|
@ -3211,11 +3211,12 @@ func (p *Pool) GetSplitInfo(ctx context.Context, cnrID cid.ID, objID oid.ID, tok
|
||||||
_, err := p.HeadObject(ctx, prm)
|
_, err := p.HeadObject(ctx, prm)
|
||||||
|
|
||||||
var errSplit *object.SplitInfoError
|
var errSplit *object.SplitInfoError
|
||||||
|
var errECInfo *object.ECInfoError
|
||||||
|
|
||||||
switch {
|
switch {
|
||||||
case errors.As(err, &errSplit):
|
case errors.As(err, &errSplit):
|
||||||
return errSplit.SplitInfo(), nil
|
return errSplit.SplitInfo(), nil
|
||||||
case err == nil:
|
case err == nil || errors.As(err, &errECInfo):
|
||||||
return nil, relations.ErrNoSplitInfo
|
return nil, relations.ErrNoSplitInfo
|
||||||
default:
|
default:
|
||||||
return nil, fmt.Errorf("failed to get raw object header: %w", err)
|
return nil, fmt.Errorf("failed to get raw object header: %w", err)
|
||||||
|
|
Loading…
Reference in a new issue