From 36492c47ec71b7c229b213118a9241d6e9bedf71 Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Mon, 5 Oct 2020 14:06:18 -0700 Subject: [PATCH] adjust --- weed/filer/reader_at.go | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/weed/filer/reader_at.go b/weed/filer/reader_at.go index 17a1ba517..3aeb9a94d 100644 --- a/weed/filer/reader_at.go +++ b/weed/filer/reader_at.go @@ -159,13 +159,11 @@ func (c *ChunkReadAt) readFromWholeChunkData(chunkView *ChunkView, nextChunkView c.lastChunkData = chunkData c.lastChunkFileId = chunkView.FileId - go func() { - for _, nextChunkView := range nextChunkViews { - if c.chunkCache != nil && nextChunkView != nil { - c.readOneWholeChunk(nextChunkView) - } + for _, nextChunkView := range nextChunkViews { + if c.chunkCache != nil && nextChunkView != nil { + go c.readOneWholeChunk(nextChunkView) } - }() + } return }