浏览代码

Using multipart uploads with S3 protocol on Google Cloud as it is supported there now

Undoing Bug 1972:
https://winscp.net/tracker/1972

(cherry picked from commit b8f51b493594f07d2a69ba177123da555c07d2f4)

Source commit: 2825a2435f2649ecfe6ece3da9e415bf8ffba4dd
Martin Prikryl 4 年之前
父节点
当前提交
65311f206b
共有 1 个文件被更改,包括 0 次插入6 次删除
  1. 0 6
      source/core/S3FileSystem.cpp

+ 0 - 6
source/core/S3FileSystem.cpp

@@ -1485,12 +1485,6 @@ void __fastcall TS3FileSystem::Source(
   int ChunkSize = std::max(S3MinMultiPartChunkSize, static_cast<int>((Handle.Size + Parts - 1) / Parts));
   DebugAssert((ChunkSize == S3MinMultiPartChunkSize) || (Handle.Size > static_cast<__int64>(S3MaxMultiPartChunks) * S3MinMultiPartChunkSize));
 
-  if ((Parts > 1) && IsGoogleCloud())
-  {
-    FTerminal->LogEvent(L"Cannot use multipart upload with Google Cloud.");
-    Parts = 1;
-  }
-
   bool Multipart = (Parts > 1);
 
   RawByteString MultipartUploadId;