Commit f2534328 authored by Sebastian Stark's avatar Sebastian Stark

handle transPurging() error in purge()

parent caf7c176
......@@ -160,10 +160,13 @@ func (s *snapshot) transIncomplete(cl clock) error {
// purge deletes the receiver snapshot from disk.
func (s *snapshot) purge() {
s.transPurging()
err := s.transPurging()
if err != nil {
log.Printf("error peparing %s for purging: %s", s.Name(), err)
}
path := s.FullName()
log.Println("purging", s.Name())
err := os.RemoveAll(path)
err = os.RemoveAll(path)
if err != nil {
log.Printf("error when purging \"%s\" (ignored): %s", s.Name(), err)
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment