Skip to content

Commit

Permalink
Close compressed DB on exit
Browse files Browse the repository at this point in the history
  • Loading branch information
ericvolp12 committed Sep 22, 2024
1 parent 3a83dcb commit 766939d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cmd/jetstream/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,11 @@ func Jetstream(cctx *cli.Context) error {
log.Error("failed to close pebble db", "error", err)
}

err = c.CompressedDB.Close()
if err != nil {
log.Error("failed to close compressed pebble db", "error", err)
}

log.Info("shut down successfully")

return nil
Expand Down

0 comments on commit 766939d

Please sign in to comment.