aboutsummaryrefslogtreecommitdiff
path: root/zenstore/compactcas.cpp
diff options
context:
space:
mode:
authorDan Engelbrecht <[email protected]>2022-03-11 23:34:43 +0100
committerDan Engelbrecht <[email protected]>2022-03-31 11:28:31 +0200
commitf2074aa777decc5104b548b3a1dbe44434bc177f (patch)
treea1685a9bf14a2a1045653ead5e215505269e1c16 /zenstore/compactcas.cpp
parentOverview of CasContainerStrategy::CollectGarbage implementation (diff)
downloadzen-f2074aa777decc5104b548b3a1dbe44434bc177f.tar.xz
zen-f2074aa777decc5104b548b3a1dbe44434bc177f.zip
Fix insert offset when moving last chunk
Diffstat (limited to 'zenstore/compactcas.cpp')
-rw-r--r--zenstore/compactcas.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/zenstore/compactcas.cpp b/zenstore/compactcas.cpp
index d5987c11e..cc2657ddb 100644
--- a/zenstore/compactcas.cpp
+++ b/zenstore/compactcas.cpp
@@ -421,7 +421,7 @@ CasContainerStrategy::CollectGarbage(GcContext& GcCtx)
if (m_CurrentInsertOffset == LastChunkNextChunkOffset)
{
- m_CurrentInsertOffset = WriteOffset;
+ m_CurrentInsertOffset = LastChunkLocation.GetOffset();
}
}