mirror of https://github.com/perkeep/perkeep.git
blobserver/diskpacked: Remove TODO, close index.
https://camlistore.org/gw/1f407edd588d8ae33475818d891fc0e0058d1628 makes this possible. Change-Id: Ibf21f7f7d3c11139192599d6e18fa0aa5dbc7007
This commit is contained in:
parent
1f407edd58
commit
60e10a99ad
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue