Skip to content

Commit

Permalink
fix: close the tempDB in restoring
Browse files Browse the repository at this point in the history
  • Loading branch information
williamhbaker committed Jun 1, 2021
1 parent 3b3da70 commit 2d78f51
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sqlite/sqlite.go
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,7 @@ func (s *SqlStore) RestoreSqlStore(ctx context.Context, r io.Reader) error {
if err != nil {
return err
}
defer tempDB.Close()

// Copy the data from the temporary restored DB into the currently open DB
return backup(ctx, s, tempDB)
Expand Down

0 comments on commit 2d78f51

Please sign in to comment.