diff options
| author | Stefan Boberg <[email protected]> | 2021-05-13 17:37:32 +0200 |
|---|---|---|
| committer | Stefan Boberg <[email protected]> | 2021-05-13 17:37:32 +0200 |
| commit | 5d46e91942d81f6ca4d12225757e633013408369 (patch) | |
| tree | d14316239f40078a91cba3d867dddc2b6bec6e2b /zencore/compactbinarypackage.cpp | |
| parent | Added string_view variant of WindowsException constructor (diff) | |
| download | zen-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.cpp | 5 |
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 { |