From a76a797f3f65bf7212b9f1eec1dc66cf61627a7a Mon Sep 17 00:00:00 2001 From: Julius Volz Date: Thu, 27 Jun 2013 17:01:31 +0200 Subject: [PATCH] Always treat series without watermarks as too old. Current series always get watermarks written out upon append now. This drops support for old series without any watermarks by always reporting them as too old (stale) during queries. --- storage/metric/tiered.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/storage/metric/tiered.go b/storage/metric/tiered.go index d2105f2b2..ce4f0c32f 100644 --- a/storage/metric/tiered.go +++ b/storage/metric/tiered.go @@ -343,7 +343,8 @@ func (t *TieredStorage) seriesTooOld(f *clientmodel.Fingerprint, i time.Time) (b return wmTime.Before(i), nil } - return false, nil + t.wmCache.Set(f, &watermarks{}) + return true, nil } return wm.High.Before(i), nil