diff options
| author | Dan Engelbrecht <[email protected]> | 2026-01-26 11:47:41 +0100 |
|---|---|---|
| committer | GitHub Enterprise <[email protected]> | 2026-01-26 11:47:41 +0100 |
| commit | 47b6d0219015b2b3d0fb4eda58bd0744d00130e9 (patch) | |
| tree | 16fedb1b24bd6ad2a7deeb338285f826f5422a41 /src/zenremotestore/include | |
| parent | builds scanning cache (#727) (diff) | |
| download | zen-47b6d0219015b2b3d0fb4eda58bd0744d00130e9.tar.xz zen-47b6d0219015b2b3d0fb4eda58bd0744d00130e9.zip | |
avoid big ioworker backlog (#733)
* add ability to override scheduling mode in ParallelWork
* Don't increase buffering size when copying from local cache with --boost-worker-memory enabled
* Rework scheduling writes of downloaded data to reduce memory usage
Diffstat (limited to 'src/zenremotestore/include')
| -rw-r--r-- | src/zenremotestore/include/zenremotestore/filesystemutils.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/zenremotestore/include/zenremotestore/filesystemutils.h b/src/zenremotestore/include/zenremotestore/filesystemutils.h index cfd6f02e1..cb2d718f7 100644 --- a/src/zenremotestore/include/zenremotestore/filesystemutils.h +++ b/src/zenremotestore/include/zenremotestore/filesystemutils.h @@ -12,6 +12,8 @@ class CompositeBuffer; class BufferedOpenFile { public: + static constexpr uint64_t BlockSize = 256u * 1024u; + BufferedOpenFile(const std::filesystem::path Path, std::atomic<uint64_t>& OpenReadCount, std::atomic<uint64_t>& CurrentOpenFileCount, @@ -30,8 +32,6 @@ public: void* Handle() { return m_Source.Handle(); } private: - const uint64_t BlockSize = 256u * 1024u; - BasicFile m_Source; const uint64_t m_SourceSize; std::atomic<uint64_t>& m_OpenReadCount; |