aboutsummaryrefslogtreecommitdiff
path: root/weed/filer/filechunk_manifest.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2021-11-12 11:30:11 -0800
committerChris Lu <chris.lu@gmail.com>2021-11-12 11:30:11 -0800
commit7bf891c00a8258ee40db46d302b0be1cc5a1d7d4 (patch)
tree10b47f9d67c78c70f4849749e4624f6029f78bee /weed/filer/filechunk_manifest.go
parent1f75f1f9dc19f74a76028420a724a4ab984c4b3d (diff)
downloadseaweedfs-7bf891c00a8258ee40db46d302b0be1cc5a1d7d4.tar.xz
seaweedfs-7bf891c00a8258ee40db46d302b0be1cc5a1d7d4.zip
randomize same-dc servers and other-dc servers
Diffstat (limited to 'weed/filer/filechunk_manifest.go')
-rw-r--r--weed/filer/filechunk_manifest.go4
1 files changed, 0 insertions, 4 deletions
diff --git a/weed/filer/filechunk_manifest.go b/weed/filer/filechunk_manifest.go
index 023d9e04a..32008271b 100644
--- a/weed/filer/filechunk_manifest.go
+++ b/weed/filer/filechunk_manifest.go
@@ -6,7 +6,6 @@ import (
"github.com/chrislusf/seaweedfs/weed/wdclient"
"io"
"math"
- "math/rand"
"net/url"
"strings"
"time"
@@ -143,9 +142,6 @@ func retriedStreamFetchChunkData(writer io.Writer, urlStrings []string, cipherKe
var shouldRetry bool
var totalWritten int
- rand.Shuffle(len(urlStrings), func(i, j int) {
- urlStrings[i], urlStrings[j] = urlStrings[j], urlStrings[i]
- })
for waitTime := time.Second; waitTime < util.RetryWaitTime; waitTime += waitTime / 2 {
for _, urlString := range urlStrings {
var localProcesed int