From 97f2dc830f2cd4cb71d0046fda94ae64b35707df Mon Sep 17 00:00:00 2001 From: Cory LaNou Date: Fri, 28 Aug 2015 10:14:24 -0500 Subject: [PATCH] comment/type fixes --- tsdb/mapper.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tsdb/mapper.go b/tsdb/mapper.go index 42d8f6e256..8bfefd45fc 100644 --- a/tsdb/mapper.go +++ b/tsdb/mapper.go @@ -753,6 +753,9 @@ func (tsc *tagSetCursor) Next(tmin, tmax int64, selectFields, whereFields []stri // Decode the raw point. value := tsc.decodeRawPoint(p, selectFields, whereFields) timestamp := p.timestamp + + // Keep track of the current tags for the series cursor so we can + // respond with them if asked tsc.currentTags = p.cursor.tags // Advance the cursor @@ -775,7 +778,7 @@ func (tsc *tagSetCursor) Next(tmin, tmax int64, selectFields, whereFields []stri } } -// Tgs returns the current tags of the current cursor +// Tags returns the current tags of the current cursor // if there is no current currsor, it returns nil func (tsc *tagSetCursor) Tags() map[string]string { return tsc.currentTags