From 6aee36ac3ba0383e0125b1f24bef96dfd82c6f80 Mon Sep 17 00:00:00 2001 From: Fabian Reinartz Date: Wed, 12 Jul 2017 14:01:45 +0200 Subject: [PATCH] vendor: update prometheus/tsdb --- vendor/github.com/prometheus/tsdb/db.go | 2 +- vendor/github.com/prometheus/tsdb/head.go | 1 + vendor/vendor.json | 6 +++--- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/vendor/github.com/prometheus/tsdb/db.go b/vendor/github.com/prometheus/tsdb/db.go index 17f3e5f5f..a4801bbf0 100644 --- a/vendor/github.com/prometheus/tsdb/db.go +++ b/vendor/github.com/prometheus/tsdb/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/vendor/github.com/prometheus/tsdb/head.go b/vendor/github.com/prometheus/tsdb/head.go index 90e03f727..cb8e7329a 100644 --- a/vendor/github.com/prometheus/tsdb/head.go +++ b/vendor/github.com/prometheus/tsdb/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") diff --git a/vendor/vendor.json b/vendor/vendor.json index ce1255a59..f5b94fb39 100644 --- a/vendor/vendor.json +++ b/vendor/vendor.json @@ -853,10 +853,10 @@ "revisionTime": "2016-04-11T19:08:41Z" }, { - "checksumSHA1": "kT9X/dKXjFCoxV48N2C9NZhPRvA=", + "checksumSHA1": "GgHaU/6pJjJ7I8aTfaZXnV/OWxA=", "path": "github.com/prometheus/tsdb", - "revision": "d492bfd973c24026ab784c1c1821af426bc80e90", - "revisionTime": "2017-06-30T13:17:34Z" + "revision": "969c407335d68cbd8154dcd1bca6259786b27f53", + "revisionTime": "2017-07-12T11:54:31Z" }, { "checksumSHA1": "9EH3v+JdbikCUJAgD4VEOPIaWfs=",