Skip to content

Commit

Permalink
Remove comment and change return var
Browse files Browse the repository at this point in the history
Signed-off-by: ilangofman <[email protected]>
  • Loading branch information
ilangofman committed Jun 30, 2021
1 parent 224815b commit 2ba3ba2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/ingester/ingester_v2.go
Original file line number Diff line number Diff line change
Expand Up @@ -1828,10 +1828,9 @@ func (i *Ingester) getMemorySeriesMetric() float64 {

count := uint64(0)

// If the TSDB is in the processes of closing, then return 0
if i.State() == services.Stopping {
level.Warn(i.logger).Log("Cannot retrieve TSDB, as the Ingester is in the process of closing all TSBD")
return float64(count)
return 0
}

for _, db := range i.TSDBState.dbs {
Expand Down

0 comments on commit 2ba3ba2

Please sign in to comment.