avoid EOF error on windows. This is a "try to load" function anyway.
This commit is contained in:
@@ -60,7 +60,7 @@ func LoadNeedleMap(file *os.File) (*NeedleMap, error) {
|
|||||||
|
|
||||||
count, e = nm.indexFile.Read(bytes)
|
count, e = nm.indexFile.Read(bytes)
|
||||||
}
|
}
|
||||||
return nm, e
|
return nm, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (nm *NeedleMap) Put(key uint64, offset uint32, size uint32) (int, error) {
|
func (nm *NeedleMap) Put(key uint64, offset uint32, size uint32) (int, error) {
|
||||||
|
|||||||
Reference in New Issue
Block a user