mirror of https://github.com/prometheus/prometheus
Browse Source
Block intervals are bound by `block.MinTime`, `block.MaxTime`, but they define a half-open interval: `[block.MinTime, block.MaxTime). However, when deciding if a chunk was part of a block or not, the `intervalOverlap()` function would consider both the chunk and the block intervals as being closed. Rather than modify the login in `intervalOverlap()`, we explicitly remove the last value from the interval when reading from head to persist blocks. Signed-off-by: Benoît Knecht <benoit.knecht@fsfe.org>pull/5805/head
Benoît Knecht
7 years ago
1 changed files with 7 additions and 1 deletions
Loading…
Reference in new issue