sapling/eden/mononoke/newfilenodes
Stanislau Hlebik 4c15790b84 mononoke: return FilenodeResult from get_all_filenodes_maybe_stale
Summary:
Let's return FilenodeResult from get_all_filenodes_maybe_stale and change
callers to deal with that.

The change is straightforward with the exception of `file_history.rs`.
get_all_filenodes_maybe_stale() is used here to prefetch a lot filenodes in one
go. This diff changes it to return an empty vec in case filenodes are disabled.
Unfortunately this is not a great solution - since prefetched files are empty
get_file_history_using_prefetched() falls back to fetching filenodes
sequentially from the blobstore. that might be too slow, and the next diffs in
the stack will address this problem.

Reviewed By: krallin

Differential Revision: D21881082

fbshipit-source-id: a86dfd48a92182381ab56994f6b0f4b14651ea14
2020-06-10 19:29:16 -07:00
..
schemas mononoke/newfilenodes: introduce a queue-conscious filenodes implementation 2020-02-27 12:34:19 -08:00
src mononoke: return FilenodeResult from get_all_filenodes_maybe_stale 2020-06-10 19:29:16 -07:00
Cargo.toml mononoke: return FilenodeResult from get_all_filenodes_maybe_stale 2020-06-10 19:29:16 -07:00