sapling/filestore/src
Stanislau Hlebik 51a117577c mononoke: use LoadableError in Loadable
Summary:
In order to remove struct Id hack in the next diff we need to implement
Manifest trait for ManifestUnode struct. However, there's a problem:
ManifestUnode::TreeId type is ManifestUnodeId which implements
MononokeId trait. And all MononokeId types automatically implement
Loadable<Value=Option<MononokeId>>. But Manifest trait requires TreeId that
implement Loadable<Value=Self> - note that there's no Option<...>, and so
ManifestUnodeId Loadable implementation doesn't match implementation required
by Manifest trait.

There are a few ways to fix it (see one of them in D16885043), and after some
discussion we decided that the best way to proceed is to add a special error
LoadableError that might be `Missing` meaning that id we are trying to fetch
doesn't exist

Reviewed By: aslpavel

Differential Revision: D16915387

fbshipit-source-id: df57ff4a7ab4ddbff5812ce5929a742d949726af
2019-08-20 09:14:38 -07:00
..
test mononoke: filestore: Refactor some functions to take ownership of a blobstore 2019-08-16 15:40:31 -07:00
alias.rs mononoke/filestore: make writes fast 2019-07-31 05:19:42 -07:00
chunk.rs mononoke/filestore: dont boxify 2019-07-31 05:19:42 -07:00
errors.rs mononoke/filestore: verify hashes before committing a store 2019-07-31 05:19:37 -07:00
expected_size.rs mononoke/filestore: verify hashes before committing a store 2019-07-31 05:19:37 -07:00
fetch_key.rs mononoke: use LoadableError in Loadable 2019-08-20 09:14:38 -07:00
fetch.rs mononoke: use LoadableError in Loadable 2019-08-20 09:14:38 -07:00
finalize.rs mononoke: move Loadable/Storable to blobstore crate 2019-08-20 02:12:39 -07:00
incremental_hash.rs mononoke/filestore: use a strongly typed ExpectedSize to avoid confusing hints and real sizes 2019-07-31 05:19:37 -07:00
lib.rs mononoke: use LoadableError in Loadable 2019-08-20 09:14:38 -07:00
metadata.rs mononoke: use LoadableError in Loadable 2019-08-20 09:14:38 -07:00
multiplexer.rs mononoke/filestore: make writes fast 2019-07-31 05:19:42 -07:00
prepare.rs mononoke/{types,filestore}: use a separate type for File Chunks 2019-08-02 03:43:16 -07:00
rechunk.rs mononoke: use LoadableError in Loadable 2019-08-20 09:14:38 -07:00
spawn.rs mononoke/filestore: make writes fast 2019-07-31 05:19:42 -07:00
streamhash.rs mononoke/filestore: use a strongly typed ExpectedSize to avoid confusing hints and real sizes 2019-07-31 05:19:37 -07:00