From 46693444de096181b124a38dbe177cdf97844226 Mon Sep 17 00:00:00 2001 From: Frederic Branczyk Date: Fri, 26 Jan 2018 16:05:39 +0100 Subject: [PATCH] vendor: Update github.com/prometheus/tsdb --- vendor/github.com/prometheus/tsdb/db.go | 6 +++++- vendor/vendor.json | 6 +++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/vendor/github.com/prometheus/tsdb/db.go b/vendor/github.com/prometheus/tsdb/db.go index b659165f1..292b2a833 100644 --- a/vendor/github.com/prometheus/tsdb/db.go +++ b/vendor/github.com/prometheus/tsdb/db.go @@ -299,7 +299,11 @@ func (db *DB) retentionCutoff() (bool, error) { } // This will close the dirs and then delete the dirs. - return len(dirs) > 0, db.reload(dirs...) + if len(dirs) > 0 { + return true, db.reload(dirs...) + } + + return false, nil } // Appender opens a new appender against the database. diff --git a/vendor/vendor.json b/vendor/vendor.json index ca6190896..0e35516de 100644 --- a/vendor/vendor.json +++ b/vendor/vendor.json @@ -800,10 +800,10 @@ "revisionTime": "2016-04-11T19:08:41Z" }, { - "checksumSHA1": "errrSfk16j274D3QY61bWODd56c=", + "checksumSHA1": "5mCM640B2xa7y+kRRUeVCglEk7o=", "path": "github.com/prometheus/tsdb", - "revision": "ad0fdaf436fc99828bce60f81984dcfa3a282a44", - "revisionTime": "2018-01-24T14:58:35Z" + "revision": "44dd5e1202b7598d50c69ce3617ca6ae6503cf52", + "revisionTime": "2018-01-26T14:54:38Z" }, { "checksumSHA1": "XTirmk6Pq5TBGIZEaN5VL4k3i1s=",