-
Notifications
You must be signed in to change notification settings - Fork 4k
Open
Labels
C-bugCode not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.branch-release-25.3Used to mark GA and release blockers and technical advisories for 25.3Used to mark GA and release blockers and technical advisories for 25.3branch-release-25.4Used to mark GA and release blockers and technical advisories for 25.4Used to mark GA and release blockers and technical advisories for 25.4
Description
cockroach/pkg/storage/pebble.go
Line 2051 in cc61b3c
| stats.TotalFiles = 3 /* CURRENT, MANIFEST, OPTIONS */ |
m := p.db.Metrics()
stats.TotalFiles = 3 /* CURRENT, MANIFEST, OPTIONS */
stats.TotalFiles += uint64(m.WAL.Files) + m.Table.Zombie.All.Count + uint64(m.WAL.ObsoleteFiles) + m.Table.Obsolete.All.Count
stats.TotalBytes = m.WAL.Size + m.Table.Zombie.All.Bytes + m.Table.Obsolete.All.Bytes
for _, l := range m.Levels {
stats.TotalFiles += l.Tables.Count
stats.TotalBytes += l.Tables.Bytes
}
I am refactoring and fixing this code on master; filing this issue to track a small fix on 25.4 and 25.3.
Jira issue: CRDB-56166
Metadata
Metadata
Assignees
Labels
C-bugCode not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.branch-release-25.3Used to mark GA and release blockers and technical advisories for 25.3Used to mark GA and release blockers and technical advisories for 25.3branch-release-25.4Used to mark GA and release blockers and technical advisories for 25.4Used to mark GA and release blockers and technical advisories for 25.4