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

This commit is contained in:
Jeffrey Gensler 2017-10-20 15:21:28 -07:00
parent a8f9de2abf
commit 7ffcca5946

View File

@ -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 {