Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

Commit

Permalink
close session after restoring tiflash-replica
Browse files Browse the repository at this point in the history
Signed-off-by: 5kbpers <[email protected]>
  • Loading branch information
5kbpers committed Mar 17, 2020
1 parent 9a98ffc commit eb6db46
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/restore.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,12 @@ func runRestoreTiflashReplicaCommand(command *cobra.Command) error {
if err != nil {
return err
}
defer store.Close()
db, err := restore.NewDB(tidbGlue, store)
if err != nil {
return err
}
defer db.Close()

for _, d := range dbs {
for _, t := range d.Tables {
Expand Down

0 comments on commit eb6db46

Please sign in to comment.