diff options
| author | Chris Lu <chris.lu@gmail.com> | 2013-02-11 23:38:48 -0800 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2013-02-11 23:38:48 -0800 |
| commit | 91492b49471da59d5ad424141ed2e8db3c25457c (patch) | |
| tree | ba10d2573cabd842a4224894a0093459b496247b | |
| parent | b395a5289b7b9a6f6d816799b0750ac82d8ef6f9 (diff) | |
| download | seaweedfs-91492b49471da59d5ad424141ed2e8db3c25457c.tar.xz seaweedfs-91492b49471da59d5ad424141ed2e8db3c25457c.zip | |
avoid EOF error on windows. This is a "try to load" function anyway.
| -rw-r--r-- | go/storage/needle_map.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/go/storage/needle_map.go b/go/storage/needle_map.go index 1d5def880..e616d676f 100644 --- a/go/storage/needle_map.go +++ b/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) { |
