mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00

Existing dbSize shows physically allocated DB size and the backend (boltdb) won't shrink it after a compaction until a user runs the defrag command. The new dbSizeInUse shows the DB size that excludes free pages created by compactions so that users can see the actual DB usage. dbSize >= dbSizeInUse is always true. Note that dbSizeInUse shows a page-based size and not byte level usage.