mirror of
https://github.com/facebook/sapling.git
synced 2024-10-11 09:17:30 +03:00
4c15790b84
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 |
||
---|---|---|
.. | ||
src | ||
tunables-derive | ||
Cargo.toml |