|
|
@ -114,7 +114,7 @@ func (c *ChunkReadAt) doReadAt(p []byte, offset int64) (n int, err error) { |
|
|
|
|
|
|
|
func (c *ChunkReadAt) fetchChunkData(chunkView *ChunkView) (data []byte, err error) { |
|
|
|
|
|
|
|
// fmt.Printf("fetching %s [%d,%d)\n", chunkView.FileId, chunkView.LogicOffset, chunkView.LogicOffset+int64(chunkView.Size))
|
|
|
|
glog.V(4).Infof("fetchChunkData %s [%d,%d)\n", chunkView.FileId, chunkView.LogicOffset, chunkView.LogicOffset+int64(chunkView.Size)) |
|
|
|
|
|
|
|
hasDataInCache := false |
|
|
|
chunkData := c.chunkCache.GetChunk(chunkView.FileId, chunkView.ChunkSize) |
|
|
|