[#563] writecache: Fix metrics and bolt delete
Estimate cache size after delete objects to update metric. Update counters on small object deletion. Do not count bbolt DB file as FSTree object. Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
This commit is contained in:
parent
5bbfebba2d
commit
0e697266c3
3 changed files with 12 additions and 20 deletions
|
@ -246,7 +246,7 @@ func (c *cache) workerFlushSmall() {
|
|||
continue
|
||||
}
|
||||
|
||||
c.deleteFromDB([]string{objectCore.AddressOf(obj).EncodeToString()})
|
||||
c.deleteFromDB(objectCore.AddressOf(obj).EncodeToString())
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue