mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2026-07-22 06:50:38 +02:00
feat(metricstore): compute buffer stats eagerly on checkpoint load
This commit is contained in:
@@ -501,6 +501,9 @@ func (l *Level) loadFile(cf *CheckpointFile, m *MemoryStore) error {
|
||||
next: nil,
|
||||
archived: true,
|
||||
}
|
||||
// Front-load the single scan so the first stat query hits the cache
|
||||
// instead of lazily rescanning this checkpoint-loaded buffer.
|
||||
b.recomputeStats()
|
||||
|
||||
minfo, ok := m.Metrics[name]
|
||||
if !ok {
|
||||
|
||||
Reference in New Issue
Block a user