From 891558cd0979c5d5ea736c949ad29502c078c852 Mon Sep 17 00:00:00 2001 From: Preetha Appan Date: Tue, 11 Jul 2017 08:22:57 -0500 Subject: [PATCH] Update raft library to pick up cleanup of temporary snapshot files --- vendor/github.com/hashicorp/raft/file_snapshot.go | 4 ++++ vendor/vendor.json | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/vendor/github.com/hashicorp/raft/file_snapshot.go b/vendor/github.com/hashicorp/raft/file_snapshot.go index 17d080134..7ec7b7a75 100644 --- a/vendor/github.com/hashicorp/raft/file_snapshot.go +++ b/vendor/github.com/hashicorp/raft/file_snapshot.go @@ -384,6 +384,10 @@ func (s *FileSnapshotSink) Close() error { // Close the open handles if err := s.finalize(); err != nil { s.logger.Printf("[ERR] snapshot: Failed to finalize snapshot: %v", err) + if delErr := os.RemoveAll(s.dir); delErr != nil { + s.logger.Printf("[ERR] snapshot: Failed to delete temporary snapshot directory at path %v: %v", s.dir, delErr) + return delErr + } return err } diff --git a/vendor/vendor.json b/vendor/vendor.json index a824fc6b3..809cc08d0 100644 --- a/vendor/vendor.json +++ b/vendor/vendor.json @@ -660,10 +660,10 @@ "revisionTime": "2015-11-16T02:03:38Z" }, { - "checksumSHA1": "bYn+HDmt7YLFvEV6DagMup8mkZE=", + "checksumSHA1": "OCPP4JxnuSSmweEL9khCd6OdIts=", "path": "github.com/hashicorp/raft", - "revision": "e5e581e04af7c46974b99195347cc0c380c0d841", - "revisionTime": "2017-06-09T23:09:26Z", + "revision": "e45173826775c4b782961c7b5758ba484b91464b", + "revisionTime": "2017-07-10T17:20:01Z", "version": "library-v2-stage-one", "versionExact": "library-v2-stage-one" },