mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2025-03-11 15:34:56 +00:00
app/vmctl: properly close file descriptor in verify-block
action (#6106)
This commit is contained in:
parent
3c315a1c23
commit
5592af2471
1 changed files with 1 additions and 0 deletions
|
@ -282,6 +282,7 @@ func main() {
|
|||
if err != nil {
|
||||
return cli.Exit(fmt.Errorf("cannot open exported block at path=%q err=%w", blockPath, err), 1)
|
||||
}
|
||||
defer f.Close()
|
||||
var blocksCount uint64
|
||||
if err := stream.Parse(f, isBlockGzipped, func(block *stream.Block) error {
|
||||
atomic.AddUint64(&blocksCount, 1)
|
||||
|
|
Loading…
Reference in a new issue