aboutsummaryrefslogtreecommitdiff
path: root/src/zenstore/blockstore.cpp
diff options
context:
space:
mode:
authorDan Engelbrecht <[email protected]>2023-11-27 09:38:06 -0500
committerGitHub <[email protected]>2023-11-27 15:38:06 +0100
commit765855296a28df198572d97207ac917f3d249014 (patch)
treeef0bd3be7997361206446c3885e93aa782b2681b /src/zenstore/blockstore.cpp
parentoptimized index snapshot reading/writing (#561) (diff)
downloadzen-765855296a28df198572d97207ac917f3d249014.tar.xz
zen-765855296a28df198572d97207ac917f3d249014.zip
gcv2 tests for project store and bugfixes (#571)
* gcv2 tests for project store and bugfixes
Diffstat (limited to 'src/zenstore/blockstore.cpp')
-rw-r--r--src/zenstore/blockstore.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/zenstore/blockstore.cpp b/src/zenstore/blockstore.cpp
index 89774f26d..03c7f4b95 100644
--- a/src/zenstore/blockstore.cpp
+++ b/src/zenstore/blockstore.cpp
@@ -291,6 +291,10 @@ BlockStore::GetBlocksToCompact(const std::unordered_map<uint32_t, uint64_t>& Blo
for (const auto& It : m_ChunkBlocks)
{
uint32_t BlockIndex = It.first;
+ if ((BlockIndex == m_WriteBlockIndex.load()) && m_WriteBlock)
+ {
+ continue;
+ }
if (std::find(m_ActiveWriteBlocks.begin(), m_ActiveWriteBlocks.end(), BlockIndex) != m_ActiveWriteBlocks.end())
{
continue;