From cc540692b75192229d0d8425c3fc0406784c1760 Mon Sep 17 00:00:00 2001 From: Dan Engelbrecht Date: Tue, 31 May 2022 22:04:34 +0200 Subject: Always block GC of current write block --- zenstore/blockstore.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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; } -- cgit v1.2.3