aboutsummaryrefslogtreecommitdiff
path: root/src
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 /src
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
Diffstat (limited to 'src')
-rw-r--r--src/zenstore/blockstore.cpp1
1 files changed, 1 insertions, 0 deletions
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;
}