Skip to content

Commit

Permalink
etcdutl: fix db double closed
Browse files Browse the repository at this point in the history
Signed-off-by: shitao.lst <acm_tach@163.com>
  • Loading branch information
Tachone committed Jun 21, 2023
1 parent de64158 commit 80f16e5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions etcdutl/snapshot/v3_snapshot.go
Original file line number Diff line number Diff line change
Expand Up @@ -384,6 +384,8 @@ func (s *v3Manager) copyAndVerifyDB() error {

// db hash is OK, can now modify DB so it can be part of a new cluster
db.Close()
dbClosed = true

return nil
}

Expand Down

0 comments on commit 80f16e5

Please sign in to comment.