浏览代码

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

Jeffrey Gensler 8 年之前
父节点
当前提交
7ffcca5946
共有 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()
 	s.Commit()
 	s.Close()
+	be.Close()
 }
 
 type dbstatus struct {