forked from TrueCloudLab/frostfs-node
[#314] wc: Do not lose small objects on disk errors
Do return error if an object could not been stored on WC's disk. Signed-off-by: Pavel Karpy <p.karpy@yadro.com>
This commit is contained in:
parent
1e6ffd45ad
commit
99f76599e8
1 changed files with 1 additions and 1 deletions
|
@ -78,7 +78,7 @@ func (c *Cache) putSmall(obj objectInfo) error {
|
||||||
)
|
)
|
||||||
c.objCounters.IncDB()
|
c.objCounters.IncDB()
|
||||||
}
|
}
|
||||||
return nil
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
// putBig writes object to FSTree and pushes it to the flush workers queue.
|
// putBig writes object to FSTree and pushes it to the flush workers queue.
|
||||||
|
|
Loading…
Reference in a new issue