Browse Source

avoid EOF error on windows. This is a "try to load" function anyway.

pull/2/head
Chris Lu 12 years ago
parent
commit
91492b4947
  1. 2
      go/storage/needle_map.go

2
go/storage/needle_map.go

@ -60,7 +60,7 @@ func LoadNeedleMap(file *os.File) (*NeedleMap, error) {
count, e = nm.indexFile.Read(bytes)
}
return nm, e
return nm, nil
}
func (nm *NeedleMap) Put(key uint64, offset uint32, size uint32) (int, error) {

Loading…
Cancel
Save