From 5260d7a954c2f93f02758e25576360bf591bf125 Mon Sep 17 00:00:00 2001 From: Aliaksandr Valialkin Date: Thu, 17 Feb 2022 12:55:54 +0200 Subject: [PATCH] lib/storage: typo fix after c3affb0c4f843f4461f3d43956ed7012e23f76c0 --- lib/storage/index_db.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/storage/index_db.go b/lib/storage/index_db.go index 728d810869..b0261442bf 100644 --- a/lib/storage/index_db.go +++ b/lib/storage/index_db.go @@ -1019,6 +1019,7 @@ func (is *indexSearch) searchTagValuesOnDate(tvs map[string]struct{}, tagKey []b kb.B = is.marshalCommonPrefix(kb.B[:0], nsPrefixDateTagToMetricIDs) kb.B = encoding.MarshalUint64(kb.B, date) kb.B = marshalTagValue(kb.B, mp.Tag.Key) + kb.B = marshalTagValue(kb.B, mp.Tag.Value) kb.B[len(kb.B)-1]++ ts.Seek(kb.B) } @@ -1102,6 +1103,7 @@ func (is *indexSearch) searchTagValues(tvs map[string]struct{}, tagKey []byte, m // Just increment it in order to jump to the next tag value. kb.B = is.marshalCommonPrefix(kb.B[:0], nsPrefixTagToMetricIDs) kb.B = marshalTagValue(kb.B, mp.Tag.Key) + kb.B = marshalTagValue(kb.B, mp.Tag.Value) kb.B[len(kb.B)-1]++ ts.Seek(kb.B) }