diff options
| author | Stefan Boberg <[email protected]> | 2021-09-02 13:01:52 +0200 |
|---|---|---|
| committer | Stefan Boberg <[email protected]> | 2021-09-02 13:01:52 +0200 |
| commit | 709c2f8afebe9151aa947ec53ab801c2e5be4746 (patch) | |
| tree | f64fb6137580d21d116563776b4708207e4c352d /zenserver | |
| parent | Added HashMemory() function accepting CompositeBuffer argument (diff) | |
| download | zen-709c2f8afebe9151aa947ec53ab801c2e5be4746.tar.xz zen-709c2f8afebe9151aa947ec53ab801c2e5be4746.zip | |
Introduced support for compressed buffer attachments
Diffstat (limited to 'zenserver')
| -rw-r--r-- | zenserver/compute/apply.cpp | 4 | ||||
| -rw-r--r-- | zenserver/projectstore.cpp | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/zenserver/compute/apply.cpp b/zenserver/compute/apply.cpp index b0d21d53a..c3d8c01ab 100644 --- a/zenserver/compute/apply.cpp +++ b/zenserver/compute/apply.cpp @@ -429,7 +429,7 @@ HttpFunctionService::HttpFunctionService(CasStore& Store, CidStore& InCidStore, ZEN_ASSERT(Attachment.IsBinary()); const IoHash DataHash = Attachment.GetHash(); - SharedBuffer DataView = Attachment.AsBinaryView(); + SharedBuffer DataView = Attachment.AsBinary(); TotalAttachmentBytes += DataView.GetSize(); ++AttachmentCount; @@ -571,7 +571,7 @@ HttpFunctionService::HttpFunctionService(CasStore& Store, CidStore& InCidStore, ZEN_ASSERT(Attachment.IsBinary()); const IoHash DataHash = Attachment.GetHash(); - SharedBuffer DataView = Attachment.AsBinaryView(); + SharedBuffer DataView = Attachment.AsBinary(); TotalAttachmentBytes += DataView.GetSize(); ++AttachmentCount; diff --git a/zenserver/projectstore.cpp b/zenserver/projectstore.cpp index 90ff79b30..1785aad9e 100644 --- a/zenserver/projectstore.cpp +++ b/zenserver/projectstore.cpp @@ -542,7 +542,7 @@ ProjectStore::Oplog::AppendNewOplogEntry(CbPackage OpPackage) for (const auto& Attach : Attachments) { - IoBuffer AttachmentData = Attach.AsBinaryView().AsIoBuffer(); + IoBuffer AttachmentData = Attach.AsBinary().AsIoBuffer(); CasStore::InsertResult Result = m_CasStore.InsertChunk(AttachmentData, Attach.GetHash()); const uint64_t AttachmentSize = AttachmentData.Size(); |