mirror of https://github.com/prometheus/prometheus
Persist the right MaxTime when snapshotting
This is because we cut a new block from where the snapshotted block ends if we restore from backups and highTimestamp would be where we should be starting from. Signed-off-by: Goutham Veeramachaneni <cs14btech11014@iith.ac.in>pull/5805/head
parent
bc3fee4820
commit
f1ae239c20
2
db.go
2
db.go
|
@ -710,7 +710,7 @@ func (db *DB) ensureHead(t int64) error {
|
|||
}
|
||||
// Create another block of buffer in front if the DB is initialized or retrieving
|
||||
// new data after a long gap.
|
||||
// This ensures we always have a full block width if append window.
|
||||
// This ensures we always have a full block width of append window.
|
||||
if addBuffer {
|
||||
if _, err := db.createHeadBlock(mint-int64(db.opts.MinBlockDuration), mint); err != nil {
|
||||
return err
|
||||
|
|
Loading…
Reference in New Issue