|
|
|
@ -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
|
|
|
|
// When disk pre-allocation is disabled, concurrent chunk uploads must be 1
|
|
|
|
// to avoid disk fragmentation and write contention on slave storage.
|
|
|
|
// to avoid disk fragmentation and write contention on slave storage.
|
|
|
|
if !handler.Policy.Settings.PreAllocate {
|
|
|
|
if !handler.Policy.Settings.PreAllocate {
|
|
|
|
handler.Policy.Settings.ChunkConcurrency = 1
|
|
|
|
settings := *handler.Policy.Settings
|
|
|
|
|
|
|
|
settings.ChunkConcurrency = 1
|
|
|
|
|
|
|
|
handler.Policy.Settings = &settings
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
return &fs.UploadCredential{
|
|
|
|
return &fs.UploadCredential{
|
|
|
|
|