diff options
| author | Chris Lu <chris.lu@gmail.com> | 2021-11-28 23:33:03 -0800 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2021-11-28 23:33:03 -0800 |
| commit | 96c66ca2aa37bc18bf493f427a74fcb4247e132b (patch) | |
| tree | b6503e76b5d5231e33be4e6b812fcd133bbbd30a | |
| parent | f3a334965d756d42240ea75a5cbc35d6cfabe7f4 (diff) | |
| download | seaweedfs-96c66ca2aa37bc18bf493f427a74fcb4247e132b.tar.xz seaweedfs-96c66ca2aa37bc18bf493f427a74fcb4247e132b.zip | |
read deleted chunks when replicating data
| -rw-r--r-- | weed/filer/stream.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/filer/stream.go b/weed/filer/stream.go index 4a70d118e..8baf7aeaa 100644 --- a/weed/filer/stream.go +++ b/weed/filer/stream.go @@ -297,7 +297,7 @@ func (c *ChunkStreamReader) fetchChunkToBuffer(chunkView *ChunkView) error { var buffer bytes.Buffer var shouldRetry bool for _, urlString := range urlStrings { - shouldRetry, err = util.ReadUrlAsStream(urlString, chunkView.CipherKey, chunkView.IsGzipped, chunkView.IsFullChunk(), chunkView.Offset, int(chunkView.Size), func(data []byte) { + shouldRetry, err = util.ReadUrlAsStream(urlString+"?readDeleted=true", chunkView.CipherKey, chunkView.IsGzipped, chunkView.IsFullChunk(), chunkView.Offset, int(chunkView.Size), func(data []byte) { buffer.Write(data) }) if !shouldRetry { |
