ソースを参照

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 {