From c9093c4bbe9ddbcff336a03c5986a781c039962c Mon Sep 17 00:00:00 2001 From: DStrand1 Date: Wed, 13 Oct 2021 13:44:28 -0500 Subject: [PATCH] chore: fix order of `Release()` and `Close()` defers --- cmd/influx_inspect/dumptsi/dumptsi.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/influx_inspect/dumptsi/dumptsi.go b/cmd/influx_inspect/dumptsi/dumptsi.go index c95f968faf7..ca8aaeff44c 100644 --- a/cmd/influx_inspect/dumptsi/dumptsi.go +++ b/cmd/influx_inspect/dumptsi/dumptsi.go @@ -135,8 +135,8 @@ func (cmd *Command) run() error { // If this is an ad-hoc fileset then process it and close afterward. if fs != nil { - defer fs.Release() defer fs.Close() + defer fs.Release() if cmd.showSeries || cmd.showMeasurements { return cmd.printMeasurements(sfile, fs) }