mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 16:57:49 +03:00
8ef5d4ba64
Summary: File content blobs are thrift encoded in Mononoke. This is done so that we can change the encoding of content blobs easily. For example, we can add compression or we can add split the blobs in chunks. However there is a problem. At the moment file content blob key is a hash of the actual data that's written to blobstore i.e. of a thrift encoded data. That means that if we add compression or change thrift encoding in any way, then the file content blob key changes and it changes the commit hashes. This is wrong. To fix it let's use hash of the actual file content as the key. Reviewed By: farnz Differential Revision: D12884898 fbshipit-source-id: e60a7b326c39dad86e2b26c6f637defcb0acc8e8 |
||
---|---|---|
.. | ||
src | ||
test | ||
Cargo.toml |