aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
}