diff --git a/pkg/blobserver/diskpacked/diskpacked.go b/pkg/blobserver/diskpacked/diskpacked.go index 1169fefce..6d3e04fe6 100644 --- a/pkg/blobserver/diskpacked/diskpacked.go +++ b/pkg/blobserver/diskpacked/diskpacked.go @@ -35,6 +35,7 @@ import ( "errors" "fmt" "io" + "log" "os" "path/filepath" "sync" @@ -193,10 +194,9 @@ func (s *storage) Close() error { defer s.mu.Unlock() if !s.closed { s.closed = true - // TODO(adg): uncomment once index.Storage has a Close method - //if err := s.index.Close(); err != nil { - // log.Println("diskpacked: closing index:", err) - //} + if err := s.index.Close(); err != nil { + log.Println("diskpacked: closing index:", err) + } if f := s.current; f != nil { s.closeErr = f.Close() s.current = nil