Sfoglia il codice sorgente

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

Jeffrey Gensler 8 anni fa
parent
commit
7ffcca5946
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  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 {