From 7ffcca59461f90a9a030a8bb753685bd8086a5e9 Mon Sep 17 00:00:00 2001 From: Jeffrey Gensler Date: Fri, 20 Oct 2017 15:21:28 -0700 Subject: [PATCH] etcdctl: close snapshot backend to close open file on member/snap/db --- etcdctl/ctlv3/command/snapshot_command.go | 1 + 1 file changed, 1 insertion(+) diff --git a/etcdctl/ctlv3/command/snapshot_command.go b/etcdctl/ctlv3/command/snapshot_command.go index 3c59ec70c..02dda0157 100644 --- a/etcdctl/ctlv3/command/snapshot_command.go +++ b/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 {