Verbose logs for DataDoesNotAlign error in CCMS

This commit is contained in:
Aditya Ujeniya
2026-03-26 14:13:12 +01:00
parent 97d65a9e5c
commit 6e97ac8b28
3 changed files with 10 additions and 6 deletions

View File

@@ -91,8 +91,10 @@ func (m *MemoryStore) Stats(selector util.Selector, metric string, from, to int6
if n == 0 {
from, to = cfrom, cto
} else if from != cfrom || to != cto {
return ErrDataDoesNotAlign
} else if from != cfrom {
return ErrDataDoesNotAlignMissingFront
} else if to != cto {
return ErrDataDoesNotAlignMissingBack
}
samples += stats.Samples