Update raft library to pick up cleanup of temporary snapshot files

This commit is contained in:
Preetha Appan 2017-07-11 08:22:57 -05:00
parent a66d61622a
commit 891558cd09
2 changed files with 7 additions and 3 deletions

View File

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

6
vendor/vendor.json vendored
View File

@ -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"
},