mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
delete entry from file index also
git-svn-id: https://weed-fs.googlecode.com/svn/trunk@44 282b0af5-e82d-9cf1-ede4-77906d7719d0
This commit is contained in:
parent
3c7c85b1d4
commit
4c31b6d533
|
@ -43,9 +43,7 @@ func LoadNeedleMap(file *os.File) *NeedleMap {
|
||||||
key := BytesToUint64(bytes[i : i+8])
|
key := BytesToUint64(bytes[i : i+8])
|
||||||
offset := BytesToUint32(bytes[i+8 : i+12])
|
offset := BytesToUint32(bytes[i+8 : i+12])
|
||||||
size := BytesToUint32(bytes[i+12 : i+16])
|
size := BytesToUint32(bytes[i+12 : i+16])
|
||||||
if offset > 0 {
|
nm.m[key] = &NeedleValue{Offset: offset, Size: size}, offset > 0
|
||||||
nm.m[key] = &NeedleValue{Offset: offset, Size: size}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
count, e = nm.indexFile.Read(bytes)
|
count, e = nm.indexFile.Read(bytes)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue