[#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>
pull/353/head
Pavel Karpy 2023-05-05 18:59:49 +03:00 committed by Evgenii Stratonikov
parent ab65063d6d
commit c3f5045842
1 changed files with 1 additions and 1 deletions

View File

@ -67,7 +67,7 @@ func (c *cache) putSmall(obj objectInfo) error {
)
c.objCounters.IncDB()
}
return nil
return err
}
// putBig writes object to FSTree and pushes it to the flush workers queue.