aboutsummaryrefslogtreecommitdiff
path: root/src/zencore/include
diff options
context:
space:
mode:
authorDan Engelbrecht <[email protected]>2024-02-05 16:52:42 +0100
committerGitHub <[email protected]>2024-02-05 16:52:42 +0100
commit222392fff48e1659ec8bc59e42de09f3625111ad (patch)
tree4e17c75beabd7704f2bca3feb26d0aa9e7de204e /src/zencore/include
parent5.4.1-pre0 (diff)
downloadzen-222392fff48e1659ec8bc59e42de09f3625111ad.tar.xz
zen-222392fff48e1659ec8bc59e42de09f3625111ad.zip
compress large attachments on demand (#647)
- Improvement: Speed up oplog export by fetching/compressing big attachments on demand - Improvement: Speed up oplog export by batch-fetcing small attachments - Improvement: Speed up oplog import by batching writes of oplog ops - Improvement: Tweak oplog export default block size and embed size limit - Improvement: Add more messaging and progress during oplog import/export
Diffstat (limited to 'src/zencore/include')
-rw-r--r--src/zencore/include/zencore/stream.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/zencore/include/zencore/stream.h b/src/zencore/include/zencore/stream.h
index a9d35ef1b..a28290041 100644
--- a/src/zencore/include/zencore/stream.h
+++ b/src/zencore/include/zencore/stream.h
@@ -34,8 +34,8 @@ public:
inline const uint8_t* Data() const { return m_Buffer.data(); }
inline const uint8_t* GetData() const { return m_Buffer.data(); }
- inline uint64_t Size() const { return m_Buffer.size(); }
- inline uint64_t GetSize() const { return m_Buffer.size(); }
+ inline uint64_t Size() const { return m_Offset; }
+ inline uint64_t GetSize() const { return m_Offset; }
void Reset();
inline MemoryView GetView() const { return MemoryView(m_Buffer.data(), m_Offset); }