sapling/eden/fs
Xavier Deguillard e6135bbf0a store: return fetch origin from backing store
Summary:
The `ObjectFetchContext::Origin::FromBackingStore` is widely interpreted as
meaning that a network fetch was performed, but for some backing stores, this
isn't true. The Mercurial backing store for instance can either read data from
its on-disk cache, or from the network. Since both have very different
characteristics we shouldn't bundle them in the same enum value.

Since the backing store knows how data was obtained, let's have the backing
store return how it was obtained to enable the ObjectStore to properly record
this information. The `FromBackingStore` is also renamed to make it clearer
what its purpose is.

Reviewed By: zhengchaol

Differential Revision: D31118906

fbshipit-source-id: ee42a0c9d221f870742de07c0df7c732bc79d880
2021-09-23 14:23:30 -07:00
..
benchharness config: namespace facebook::eden 2021-06-08 19:29:37 -07:00
benchmarks replace folly::Optional with std::optional 2021-09-17 11:24:33 -07:00
cli fix python type error take 2 2021-09-23 10:29:01 -07:00
cli_rs Add syslog and slog-syslog crates 2021-09-21 07:22:38 -07:00
config replace most folly:format uses 2021-09-20 16:23:22 -07:00
docs Fix typo in inode documentation 2021-07-30 15:27:59 -07:00
fuse replace most folly:format uses 2021-09-20 16:23:22 -07:00
inodes store: return fetch origin from backing store 2021-09-23 14:23:30 -07:00
journal Remove direct uses of gmock.h 2021-07-07 13:32:31 -07:00
model replace most folly:format uses 2021-09-20 16:23:22 -07:00
monitor migrate from LockedPtr::getUniqueLock 2021-06-13 18:53:58 -07:00
nfs add inode number to NFS trace event 2021-09-14 10:44:46 -07:00
notifications notifications: support Windows 2020-11-11 09:37:56 -08:00
prjfs windows: invalidate negative path cache during start 2021-09-09 10:48:53 -07:00
py suppress errors in fbcode/eden - batch 1 2021-08-24 14:30:57 -07:00
rocksdb Remove dead includes in eden 2019-10-11 16:45:01 -07:00
scripts move eden/scripts/ into eden/fs/ 2020-11-04 18:29:49 -08:00
service replace most folly:format uses 2021-09-20 16:23:22 -07:00
sqlite overlay: use PersistentSqliteStatement in TreeOverlayStore 2021-03-15 12:01:48 -07:00
store store: return fetch origin from backing store 2021-09-23 14:23:30 -07:00
takeover replace most folly:format uses 2021-09-20 16:23:22 -07:00
telemetry log FS trace events with HiveLogger 2021-09-02 10:32:03 -07:00
testharness store: return fetch origin from backing store 2021-09-23 14:23:30 -07:00
third-party fs: update fuse_kernel_linux.h 2021-03-17 20:55:43 -07:00
utils replace most folly:format uses 2021-09-20 16:23:22 -07:00
CMakeLists.txt nfs: make it compile with getdeps builds 2021-02-03 17:54:54 -08:00