forked from TrueCloudLab/frostfs-node
[#1298] writecache: Add shrink
flag for Seal command
Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
This commit is contained in:
parent
5c01bd5be8
commit
36efccd862
12 changed files with 255 additions and 187 deletions
|
@ -291,7 +291,7 @@ func (c *cache) Flush(ctx context.Context, ignoreErrors, seal bool) error {
|
|||
|
||||
if seal {
|
||||
m := c.mode | mode.ReadOnly
|
||||
if err := c.setMode(ctx, m, ignoreErrors); err != nil {
|
||||
if err := c.setMode(ctx, m, setModePrm{ignoreErrors: ignoreErrors}); err != nil {
|
||||
return err
|
||||
}
|
||||
c.metrics.SetMode(mode.ConvertToComponentModeDegraded(m))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue