mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
avoid EOF error on windows. This is a "try to load" function anyway.
This commit is contained in:
parent
b395a5289b
commit
91492b4947
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue