sapling/eden/fs/testharness
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
..
test store: return fetch origin from backing store 2021-09-23 14:23:30 -07:00
CMakeLists.txt use the normal PrivHelper.h header file on Windows 2020-05-01 14:01:40 -07:00
FakeBackingStore.cpp store: return fetch origin from backing store 2021-09-23 14:23:30 -07:00
FakeBackingStore.h store: return fetch origin from backing store 2021-09-23 14:23:30 -07:00
FakeClock.h Tidy up license headers 2019-10-11 05:28:23 -07:00
FakeFuse.cpp utils: compile the tests with @mode/win 2020-10-22 12:52:13 -07:00
FakeFuse.h Tidy up license headers 2019-10-11 05:28:23 -07:00
FakeObjectStore.cpp store: avoid copying proxy hashes during prefetch 2021-08-23 11:05:02 -07:00
FakeObjectStore.h store: avoid copying proxy hashes during prefetch 2021-08-23 11:05:02 -07:00
FakePrivHelper.cpp nfs: allow mountd and nfsd sockets to be non-inet on macOS 2021-05-12 13:06:57 -07:00
FakePrivHelper.h Make eden doctor report when the PrivHelper is inaccessible 2021-07-12 13:16:21 -07:00
FakeTreeBuilder.cpp model: remove test-only constructor for TreeEntry 2021-01-05 14:08:14 -08:00
FakeTreeBuilder.h Tidy up license headers 2019-10-11 05:28:23 -07:00
HgBinary.cpp eden: set hgPath programmatically 2021-06-15 02:47:41 -07:00
HgBinary.h eden: set hgPath programmatically 2021-06-15 02:47:41 -07:00
HgRepo.cpp eden: set hgPath programmatically 2021-06-15 02:47:41 -07:00
HgRepo.h rename Hash to Hash20 2021-09-08 16:27:10 -07:00
InodeUnloader.h use portable version of gtest 2021-05-12 15:58:27 -07:00
LoggingFetchContext.h add cause info to objectFetchContext 2020-06-23 10:02:40 -07:00
StoredObject.h rename Hash to Hash20 2021-09-08 16:27:10 -07:00
TempFile.cpp enable the fs/utils tests in the Windows build 2020-04-29 11:04:21 -07:00
TempFile.h Tidy up license headers 2019-10-11 05:28:23 -07:00
TestChecks.h replace most folly:format uses 2021-09-20 16:23:22 -07:00
TestDispatcher.cpp migrate from LockedPtr::getUniqueLock 2021-06-13 18:53:58 -07:00
TestDispatcher.h fuse: use ImmediateFuture in the Fuse dispatcher 2021-05-17 14:07:29 -07:00
TestMain.cpp Tidy up license headers 2019-10-11 05:28:23 -07:00
TestMount.cpp store weak_ptr of EdenMount in FileAccess event 2021-06-30 09:22:59 -07:00
TestMount.h introduce a variable-width RootId type that identifies the root of an EdenFS checkout's contents 2021-06-07 17:25:31 -07:00
TestServer.cpp create ActivityRecorder boilerplate and thread it to EdenMount 2021-07-23 12:32:25 -07:00
TestServer.h Tidy up license headers 2019-10-11 05:28:23 -07:00
TestUtil.cpp Tidy up license headers 2019-10-11 05:28:23 -07:00
TestUtil.h rename Hash to Hash20 2021-09-08 16:27:10 -07:00