aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Engelbrecht <[email protected]>2022-06-01 10:00:45 +0200
committerGitHub <[email protected]>2022-06-01 10:00:45 +0200
commitb7b172ddf7a417ab04ed6a26bfce17b5e6df59a2 (patch)
treee154da3a2d833d21931fce47c90a9927d516473a
parentMerge pull request #114 from EpicGames/de/fix-legacy-upstream-without-namespa... (diff)
parentAlways block GC of current write block (diff)
downloadzen-b7b172ddf7a417ab04ed6a26bfce17b5e6df59a2.tar.xz
zen-b7b172ddf7a417ab04ed6a26bfce17b5e6df59a2.zip
Merge pull request #115 from EpicGames/de/block-gc-of-current-write-block
Always block GC of current write block
-rw-r--r--zenstore/blockstore.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/zenstore/blockstore.cpp b/zenstore/blockstore.cpp
index 7d3d2f5bb..4e61c23cf 100644
--- a/zenstore/blockstore.cpp
+++ b/zenstore/blockstore.cpp
@@ -272,6 +272,10 @@ BlockStore::GetReclaimSnapshotState()
{
State.m_ActiveWriteBlocks.insert(BlockIndex);
}
+ if (m_WriteBlock)
+ {
+ State.m_ActiveWriteBlocks.insert(m_WriteBlockIndex);
+ }
State.BlockCount = m_ChunkBlocks.size();
return State;
}