Add small margin for the maximum number of file parts on download.
This commit is contained in:
parent
56bba7c731
commit
52a47b5f70
@ -285,7 +285,7 @@ Result<Part> PartsManager::start_part() {
|
||||
if (part_i == part_count_) {
|
||||
if (unknown_size_flag_) {
|
||||
part_count_++;
|
||||
if (part_count_ > MAX_PART_COUNT) {
|
||||
if (part_count_ > MAX_PART_COUNT + (use_part_count_limit_ ? 0 : 64)) {
|
||||
if (!is_upload_) {
|
||||
// Caller will try to increase part size if it is possible
|
||||
return Status::Error("FILE_DOWNLOAD_RESTART_INCREASE_PART_SIZE");
|
||||
|
Loading…
x
Reference in New Issue
Block a user