Skip to content

Commit

Permalink
Problem: db is double closed when shutdown
Browse files Browse the repository at this point in the history
  • Loading branch information
yihuang committed Sep 25, 2024
1 parent bcac9e2 commit 363d814
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions server/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -317,12 +317,6 @@ func startInProcess(svrCtx *server.Context, clientCtx client.Context, opts Start
return err
}

defer func() {
if err := db.Close(); err != nil {
logger.With("error", err).Error("error closing db")
}
}()

traceWriterFile := svrCtx.Viper.GetString(srvflags.TraceStore)
traceWriter, err := openTraceWriter(traceWriterFile)
if err != nil {
Expand Down

0 comments on commit 363d814

Please sign in to comment.