diff --git a/db.go b/db.go index 17f3e5f5f..a4801bbf0 100644 --- a/db.go +++ b/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 diff --git a/head.go b/head.go index 90e03f727..cb8e7329a 100644 --- a/head.go +++ b/head.go @@ -302,6 +302,7 @@ func (h *HeadBlock) Snapshot(snapshotDir string) error { return errors.Wrap(err, "write snapshot") } meta.ULID = uid + meta.MaxTime = h.highTimestamp if err = writeMetaFile(tmp, meta); err != nil { return errors.Wrap(err, "write merged meta")