From a33d2726bce182ed62a5ee21a3d53a50d12a71f1 Mon Sep 17 00:00:00 2001 From: Julius Volz Date: Fri, 22 Mar 2013 11:50:02 +0100 Subject: [PATCH] Mark range op as consumed if it receives no data points in range. --- storage/metric/operation.go | 1 + 1 file changed, 1 insertion(+) diff --git a/storage/metric/operation.go b/storage/metric/operation.go index a473a1b00..127143512 100644 --- a/storage/metric/operation.go +++ b/storage/metric/operation.go @@ -227,6 +227,7 @@ func (g *getValuesAlongRangeOp) ExtractSamples(in []model.SamplePair) (out []mod return in[i].Timestamp.After(g.through) }) if lastIdx == firstIdx { + g.from = g.through.Add(1) return }