diff options
| author | Chris Lu <chris.lu@gmail.com> | 2020-10-22 12:59:15 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2020-10-22 12:59:15 -0700 |
| commit | d75bc62196353692403e27ff589ece829f4d5721 (patch) | |
| tree | cdf8c122875c9625decafbc32046eacec25449f5 /weed/filer/stream.go | |
| parent | 575d7952a141f4f8061943d84032f26f2ea48a9a (diff) | |
| download | seaweedfs-d75bc62196353692403e27ff589ece829f4d5721.tar.xz seaweedfs-d75bc62196353692403e27ff589ece829f4d5721.zip | |
to read files that are quickly changing
Diffstat (limited to 'weed/filer/stream.go')
| -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 363b07f14..cffdc8303 100644 --- a/weed/filer/stream.go +++ b/weed/filer/stream.go @@ -181,7 +181,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 { |
