forked from TrueCloudLab/frostfs-node
[#1166] blobovnicza: Return NoSpaceLeft error instead of syscall.ENOSPC
Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
This commit is contained in:
parent
a0c588263b
commit
e7d479f4c2
4 changed files with 29 additions and 2 deletions
|
@ -2,6 +2,8 @@ package blobovnicza
|
|||
|
||||
import (
|
||||
"context"
|
||||
"errors"
|
||||
"syscall"
|
||||
|
||||
"git.frostfs.info/TrueCloudLab/frostfs-node/internal/logs"
|
||||
tracingPkg "git.frostfs.info/TrueCloudLab/frostfs-node/pkg/tracing"
|
||||
|
@ -97,5 +99,9 @@ func (b *Blobovnicza) Delete(ctx context.Context, prm DeletePrm) (DeleteRes, err
|
|||
b.itemDeleted(recordSize)
|
||||
}
|
||||
|
||||
if errors.Is(err, syscall.ENOSPC) {
|
||||
err = ErrNoSpace
|
||||
}
|
||||
|
||||
return DeleteRes{}, err
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue