This commit is contained in:
chrislu
2021-12-22 16:05:08 -08:00
parent 7b78fc72b0
commit 4c1368d621
2 changed files with 22 additions and 16 deletions

View File

@@ -186,6 +186,9 @@ func (c *ChunkReadAt) readChunkSlice(chunkView *ChunkView, nextChunkViews *Chunk
if len(chunkSlice) > 0 {
return chunkSlice, nil
}
if c.lookupFileId == nil {
return nil, nil
}
chunkData, err := c.readFromWholeChunkData(chunkView, nextChunkViews)
if err != nil {
return nil, err