From 60e10a99adaa82aa6f31ad3fb7705898a5e3da23 Mon Sep 17 00:00:00 2001 From: Bill Thiede Date: Sun, 24 Nov 2013 14:24:24 -0800 Subject: [PATCH] blobserver/diskpacked: Remove TODO, close index. https://camlistore.org/gw/1f407edd588d8ae33475818d891fc0e0058d1628 makes this possible. Change-Id: Ibf21f7f7d3c11139192599d6e18fa0aa5dbc7007 --- pkg/blobserver/diskpacked/diskpacked.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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