blobserver/diskpacked: Remove TODO, close index.

https://camlistore.org/gw/1f407edd588d8ae33475818d891fc0e0058d1628 makes this
possible.

Change-Id: Ibf21f7f7d3c11139192599d6e18fa0aa5dbc7007
This commit is contained in:
Bill Thiede 2013-11-24 14:24:24 -08:00
parent 1f407edd58
commit 60e10a99ad
1 changed files with 4 additions and 4 deletions

View File

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