Potential fix for pull request finding

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
pull/3501/head
Darren Yu 2 weeks ago committed by GitHub
parent 304c3480df
commit d5e0fc3bc8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -153,7 +153,9 @@ func (handler *Driver) Token(ctx context.Context, uploadSession *fs.UploadSessio
// When disk pre-allocation is disabled, concurrent chunk uploads must be 1
// to avoid disk fragmentation and write contention on slave storage.
if !handler.Policy.Settings.PreAllocate {
handler.Policy.Settings.ChunkConcurrency = 1
settings := *handler.Policy.Settings
settings.ChunkConcurrency = 1
handler.Policy.Settings = &settings
}
return &fs.UploadCredential{

Loading…
Cancel
Save