refactor volume_read_write.go out of volume.go

This commit is contained in:
Chris Lu
2016-07-03 00:10:27 -07:00
parent 576573711a
commit d981eb282f
4 changed files with 234 additions and 225 deletions

View File

@@ -181,7 +181,7 @@ func (v *Volume) IndexFileContent() ([]byte, error) {
func (v *Volume) removeNeedle(key Key) {
n := new(Needle)
n.Id = uint64(key)
v.delete(n)
v.deleteNeedle(n)
}
// fetchNeedle fetches a remote volume needle by vid, id, offset