Do not periodically flush with nomultipartupload (#1559)

s3fs periodically flushes data to S3 and hole-punches the written
data, marking it as clean.  Without multipart copy, s3fs would write
the now-zeroed data along with any new data.  s3fs should not attempt
to periodically flush dirty data at all without multipart copy
support.  Fixes #1542.
This commit is contained in:
Andrew Gaul
2021-02-11 22:24:39 +09:00
committed by GitHub
parent a4d916af13
commit ec8bae9827

View File

@ -5056,6 +5056,7 @@ int main(int argc, char* argv[])
// Check multipart / copy api for mix multipart uploading
if(nomultipart || nocopyapi || norenameapi){
FdEntity::SetNoMixMultipart();
max_dirty_data = -1;
}
// check free disk space