forked from TrueCloudLab/frostfs-node
[#568] shard/writecache: Maintain memory size and db size
Signed-off-by: ZhangTao1596 <zhangtao@ngd.neo.org>
This commit is contained in:
parent
adbbad0beb
commit
9b87e6267d
4 changed files with 32 additions and 20 deletions
|
@ -99,8 +99,6 @@ func (c *cache) flush() {
|
|||
c.flushed.Add(m[i].addr, true)
|
||||
}
|
||||
|
||||
c.dbSize.Sub(uint64(sz))
|
||||
|
||||
c.log.Debug("flushed items from write-cache",
|
||||
zap.Int("count", len(m)),
|
||||
zap.String("start", base58.Encode(lastKey)))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue