SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.
Go blob-storagecloud-drivedistributed-file-systemdistributed-storageerasure-codingfusehadoop-hdfshdfskuberneteslancelancedbobject-storageposixs3s3-storageseaweedfstiered-file-systemvector-search
avoid data race access to startDelay (#3548)
Konstantin Lebedev903a06a16000
diff --git a/weed/command/filer.go b/weed/command/filer.goindex 5c1e653cbc..0dd35e5bde 100644--- a/weed/command/filer.go+++ b/weed/command/filer.go@@ -173,29 +173,29 @@ func runFiler(cmd *Command, args []string) bool {if *f.dataCenter != "" && *filerS3Options.dataCenter == "" {filerS3Options.dataCenter = f.dataCenter}- go func() {- time.Sleep(startDelay * time.Second)+ go func(delay time.Duration) {+ time.Sleep(delay * time.Second)filerS3Options.startS3Server()- }()+ }(startDelay)startDelay++}if *filerStartWebDav {filerWebDavOptions.filer = &filerAddress- go func() {- time.Sleep(startDelay * time.Second)+ go func(delay time.Duration) {+ time.Sleep(delay * time.Second)filerWebDavOptions.startWebDav()- }()+ }(startDelay)startDelay++}if *filerStartIam {filerIamOptions.filer = &filerAddressfilerIamOptions.masters = f.mastersString- go func() {- time.Sleep(startDelay * time.Second)+ go func(delay time.Duration) {+ time.Sleep(delay * time.Second)filerIamOptions.startIamServer()- }()+ }(startDelay)}f.masters = pb.ServerAddresses(*f.mastersString).ToAddressMap()