Merge pull request #7161 from nextcloud/bugfix/changeDefaultChunkSize

changing default chunk size to 100MB
This commit is contained in:
Matthieu Gallien 2024-09-26 11:52:47 +02:00 committed by GitHub
commit c44d29d91c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 3 additions and 3 deletions

View file

@ -244,7 +244,7 @@ int ConfigFile::timeout() const
qint64 ConfigFile::chunkSize() const
{
QSettings settings(configFile(), QSettings::IniFormat);
return settings.value(QLatin1String(chunkSizeC), 10LL * 1000LL * 1000LL).toLongLong(); // default to 10 MB
return settings.value(QLatin1String(chunkSizeC), 100LL * 1024LL * 1024LL).toLongLong(); // 100MiB
}
qint64 ConfigFile::maxChunkSize() const

View file

@ -55,7 +55,7 @@ public:
* starting value and is then gradually adjusted within the
* minChunkSize / maxChunkSize bounds.
*/
qint64 _initialChunkSize = 10 * 1000 * 1000; // 10MB
qint64 _initialChunkSize = 100LL * 1024LL * 1024LL; // 100MiB
/** The target duration of chunk uploads for dynamic chunk sizing.
*

View file

@ -33,7 +33,7 @@ private slots:
{"chunking", "1.0"},
{"httpErrorCodesThatResetFailingChunkedUploads", QVariantList{500} } } } });
const int size = 100 * 1000 * 1000; // 100 MB
const auto size = 200LL * 1024LL * 1024LL; // 200 MiB
fakeFolder.localModifier().insert("A/a0", size);
QDateTime modTime = QDateTime::currentDateTime();
fakeFolder.localModifier().setModTime("A/a0", modTime);