From ec8bae982796b72e40bd5fbbd0d0b9bd01ba6bbf Mon Sep 17 00:00:00 2001 From: Andrew Gaul Date: Thu, 11 Feb 2021 22:24:39 +0900 Subject: [PATCH] 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. --- src/s3fs.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/s3fs.cpp b/src/s3fs.cpp index 23f189b..2def5ca 100644 --- a/src/s3fs.cpp +++ b/src/s3fs.cpp @@ -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