[#1819] engine: Increase error counter for PUT errors
Signed-off-by: Evgenii Stratonikov <evgeniy@morphbits.ru>
This commit is contained in:
parent
b89e71fa78
commit
2e3ef817f4
3 changed files with 18 additions and 7 deletions
|
@ -11,6 +11,10 @@ import (
|
|||
"go.uber.org/zap"
|
||||
)
|
||||
|
||||
// ErrNoPlaceFound is returned when object can't be saved to any sub-storage component
|
||||
// because of the policy.
|
||||
var ErrNoPlaceFound = errors.New("couldn't find a place to store an object")
|
||||
|
||||
// Put saves the object in BLOB storage.
|
||||
//
|
||||
// If object is "big", BlobStor saves the object in shallow dir.
|
||||
|
@ -46,7 +50,7 @@ func (b *BlobStor) Put(prm common.PutPrm) (common.PutRes, error) {
|
|||
}
|
||||
}
|
||||
|
||||
return common.PutRes{}, errors.New("couldn't find a place to store an object")
|
||||
return common.PutRes{}, ErrNoPlaceFound
|
||||
}
|
||||
|
||||
// NeedsCompression returns true if the object should be compressed.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue