Skip to content

Commit

Permalink
Update pkg/bloomcompactor/batch.go
Browse files Browse the repository at this point in the history
  • Loading branch information
owen-d authored Feb 15, 2024
1 parent bc1f382 commit 980e3a4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pkg/bloomcompactor/batch.go
Original file line number Diff line number Diff line change
Expand Up @@ -248,9 +248,11 @@ func (i *blockLoadingIter) Reset() error {
if !i.initialized {
return nil
}
i.initialized = false
// close loaded queriers
return i.Close()
err := i.Close()
i.initialized = false
clear(i.loaded)
return err
}

func (i *blockLoadingIter) init() {
Expand Down

0 comments on commit 980e3a4

Please sign in to comment.