diff --git a/weed/storage/needle_map.go b/weed/storage/needle_map.go index a22125682..634685175 100644 --- a/weed/storage/needle_map.go +++ b/weed/storage/needle_map.go @@ -37,10 +37,10 @@ type NeedleMapper interface { } type baseNeedleMapper struct { + mapMetric + indexFile *os.File indexFileAccessLock sync.Mutex - - mapMetric } func (nm *baseNeedleMapper) IndexFileSize() uint64 { diff --git a/weed/storage/needle_map_memory.go b/weed/storage/needle_map_memory.go index 727049a13..bda4a5c8f 100644 --- a/weed/storage/needle_map_memory.go +++ b/weed/storage/needle_map_memory.go @@ -10,9 +10,8 @@ import ( ) type NeedleMap struct { - m needle_map.NeedleValueMap - baseNeedleMapper + m needle_map.NeedleValueMap } func NewCompactNeedleMap(file *os.File) *NeedleMap {