forked from TrueCloudLab/frostfs-node
[#1905] shard: Don't log read-only errors of write-cache
There is no need to log `writecache.ErrReadOnly` errors in `Delete` method of the `Shard`. Signed-off-by: Leonard Lyubich <ctulhurider@gmail.com>
This commit is contained in:
parent
b1fa084756
commit
e8c5f03c30
2 changed files with 10 additions and 1 deletions
|
@ -23,6 +23,12 @@ type Info struct {
|
|||
type Cache interface {
|
||||
Get(address oid.Address) (*object.Object, error)
|
||||
Head(oid.Address) (*object.Object, error)
|
||||
// Delete removes object referenced by the given oid.Address from the
|
||||
// Cache. Returns any error encountered that prevented the object to be
|
||||
// removed.
|
||||
//
|
||||
// Returns apistatus.ObjectNotFound if object is missing in the Cache.
|
||||
// Returns ErrReadOnly if the Cache is currently in the read-only mode.
|
||||
Delete(oid.Address) error
|
||||
Iterate(IterationPrm) error
|
||||
Put(common.PutPrm) (common.PutRes, error)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue