Ver Fonte

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

Jeffrey Gensler há 8 anos atrás
pai
commit
7ffcca5946
1 ficheiros alterados com 1 adições e 0 exclusões
  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()
 	s.Commit()
 	s.Close()
+	be.Close()
 }
 
 type dbstatus struct {