From 91492b49471da59d5ad424141ed2e8db3c25457c Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Mon, 11 Feb 2013 23:38:48 -0800 Subject: [PATCH] avoid EOF error on windows. This is a "try to load" function anyway. --- go/storage/needle_map.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {