From 832a1b464633ec7a31a8aad386520e1990d0b6cb Mon Sep 17 00:00:00 2001 From: Dan Engelbrecht Date: Tue, 5 Sep 2023 18:53:44 -0400 Subject: stream oplog attachments from jupiter (#384) * stream large downloads from jupiter to temporary file * rework DeleteOnClose - top level marks file for delete and if lower level parts wants to keep it it clears that flag * changelog * log number of attachments to download * add delay on jupiter request failure when retrying * make sure we upload all attachments even if Needs are empty when ForceUpload is true release TempAttachment as soon as it is used * sort attachments so we get predictable blocks for the same oplog --- src/zencore/filesystem.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/zencore/filesystem.cpp') diff --git a/src/zencore/filesystem.cpp b/src/zencore/filesystem.cpp index e17d83895..3311ba1b9 100644 --- a/src/zencore/filesystem.cpp +++ b/src/zencore/filesystem.cpp @@ -758,7 +758,7 @@ ReadFile(std::filesystem::path Path) #endif FileContents Contents; - Contents.Data.emplace_back(IoBuffer(IoBuffer::File, Handle, 0, FileSizeBytes)); + Contents.Data.emplace_back(IoBuffer(IoBuffer::File, Handle, 0, FileSizeBytes, /*IsWholeFile*/ true)); return Contents; } -- cgit v1.2.3