Skip to content

Commit b4e5d1b

Browse files
committed
writecache: fix test flush on moving to degraded mode
Although there is `ignoreErrors` flag, but when `flushObjects` occurs in FSTree, the error should be returned as with Bolt. Signed-off-by: Andrey Butusov <[email protected]>
1 parent 25314f5 commit b4e5d1b

File tree

1 file changed

+0
-3
lines changed
  • pkg/local_object_storage/writecache

1 file changed

+0
-3
lines changed

pkg/local_object_storage/writecache/flush.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -207,9 +207,6 @@ func (c *cache) flushFSTree(ignoreErrors bool) error {
207207

208208
err = c.flushObject(&obj, data)
209209
if err != nil {
210-
if ignoreErrors {
211-
return nil
212-
}
213210
return err
214211
}
215212

0 commit comments

Comments
 (0)