[#568] shard/writecache: Maintain memory size and db size

Signed-off-by: ZhangTao1596 <zhangtao@ngd.neo.org>
This commit is contained in:
ZhangTao1596 2021-06-21 17:42:09 +08:00 committed by Alex Vanin
parent adbbad0beb
commit 9b87e6267d
4 changed files with 32 additions and 20 deletions

View file

@ -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)))