Browse Source

etcdctl: close snapshot backend to close open file on member/snap/db

Jeffrey Gensler 8 years ago
parent
commit
7ffcca5946
1 changed files with 1 additions and 0 deletions
  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 {