소스 검색

Merge pull request #8727 from CDKGlobal/fix/close-restore-backup-backend-master

etcdctl: close snapshot backend to close open file on member/snap/db
Xiang Li 8 년 전
부모
커밋
ebc09b1149
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      etcdctl/ctlv3/command/snapshot_command.go

+ 1 - 0
etcdctl/ctlv3/command/snapshot_command.go

@@ -392,6 +392,7 @@ func makeDB(snapdir, dbfile string, commit int) {
 	txn.End()
 	txn.End()
 	s.Commit()
 	s.Commit()
 	s.Close()
 	s.Close()
+	be.Close()
 }
 }
 
 
 type dbstatus struct {
 type dbstatus struct {