Skip to content

Commit 0892114

Browse files
arajkumarmetalmatze
authored andcommitted
Close frostdb during prometheus shutdown
Signed-off-by: Arunprasad Rajkumar <[email protected]>
1 parent e4734df commit 0892114

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

frostdb/frostdb.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,9 @@ func (f *FrostQuerier) LabelNames(matchers ...*labels.Matcher) ([]string, storag
158158
return names, nil, nil
159159
}
160160

161-
func (f *FrostQuerier) Close() error { return nil }
161+
func (f *FrostQuerier) Close() error {
162+
return nil
163+
}
162164

163165
func (f *FrostQuerier) Select(sortSeries bool, hints *storage.SelectHints, matchers ...*labels.Matcher) storage.SeriesSet {
164166
engine := query.NewEngine(
@@ -201,7 +203,7 @@ func (f *FrostDB) StartTime() (int64, error) {
201203
}
202204

203205
func (f *FrostDB) Close() error {
204-
return nil
206+
return f.store.Close()
205207
}
206208

207209
func (f *FrostDB) Appender(ctx context.Context) storage.Appender {

0 commit comments

Comments
 (0)