aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Engelbrecht <[email protected]>2023-09-27 12:05:58 +0200
committerGitHub <[email protected]>2023-09-27 12:05:58 +0200
commit7056e632fe05296c94c5e2dcc57f4079c7dbc2d9 (patch)
tree88d4bc9e85d880d72dc5c961e30ba02bd852634c
parentMerge branch 'main' of https://github.com/EpicGames/zen (diff)
downloadzen-7056e632fe05296c94c5e2dcc57f4079c7dbc2d9.tar.xz
zen-7056e632fe05296c94c5e2dcc57f4079c7dbc2d9.zip
flush block store blocks when finished (#425)
* flush block store block
-rw-r--r--CHANGELOG.md3
-rw-r--r--src/zenstore/blockstore.cpp1
2 files changed, 4 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 0bb9974cd..ed6bff238 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,4 +1,7 @@
##
+- Improvement: Flush current data block to disk when switching to a new block
+
+## 0.2.24
- Feature: New endpoint `/admin/logs` to query status of logging and log file locations and cache logging
- `cacheenablewritelog`=`true`/`false` parameter to control cache write logging
- `cacheenableaccesslog`=`true`/`false` parameter to control cache access logging
diff --git a/src/zenstore/blockstore.cpp b/src/zenstore/blockstore.cpp
index a16dd4539..520227474 100644
--- a/src/zenstore/blockstore.cpp
+++ b/src/zenstore/blockstore.cpp
@@ -277,6 +277,7 @@ BlockStore::WriteChunk(const void* Data, uint64_t Size, uint64_t Alignment, cons
{
if (m_WriteBlock)
{
+ m_WriteBlock->Flush();
m_WriteBlock = nullptr;
}