aboutsummaryrefslogtreecommitdiff
path: root/zencore/compactbinarypackage.cpp
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2021-05-13 17:37:32 +0200
committerStefan Boberg <[email protected]>2021-05-13 17:37:32 +0200
commit5d46e91942d81f6ca4d12225757e633013408369 (patch)
treed14316239f40078a91cba3d867dddc2b6bec6e2b /zencore/compactbinarypackage.cpp
parentAdded string_view variant of WindowsException constructor (diff)
downloadzen-5d46e91942d81f6ca4d12225757e633013408369.tar.xz
zen-5d46e91942d81f6ca4d12225757e633013408369.zip
Implemented move-in-place for large CAS payloads
Diffstat (limited to 'zencore/compactbinarypackage.cpp')
-rw-r--r--zencore/compactbinarypackage.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/zencore/compactbinarypackage.cpp b/zencore/compactbinarypackage.cpp
index f84137ff6..262b6ecba 100644
--- a/zencore/compactbinarypackage.cpp
+++ b/zencore/compactbinarypackage.cpp
@@ -54,7 +54,10 @@ CbAttachment::CbAttachment(SharedBuffer InBuffer, const IoHash* const InHash) :
Hash = *InHash;
if (Buffer.GetSize())
{
- ZEN_ASSERT_SLOW(Hash == IoHash::HashMemory(Buffer.GetData(), Buffer.GetSize()));
+ // This is disabled for now as it forces disk-based attachments to get mapped which
+ // then prevents us from making them delete themselves on close
+
+ // ZEN_ASSERT_SLOW(Hash == IoHash::HashMemory(Buffer.GetData(), Buffer.GetSize()));
}
else
{