Merge pull request #948 from gaul/too-many-parts

Add logging for too many parts
This commit is contained in:
Takeshi Nakatani
2019-02-03 14:55:54 +09:00
committed by GitHub

View File

@ -1508,6 +1508,7 @@ int FdEntity::RowFlush(const char* tpath, bool force_sync)
*/
if(pagelist.Size() > static_cast<size_t>(MAX_MULTIPART_CNT * S3fsCurl::GetMultipartSize())){
// close f ?
S3FS_PRN_ERR("Part count exceeds %d. Increase multipart size and try again.", MAX_MULTIPART_CNT);
return -ENOTSUP;
}