sapling/eden/fs/store
Victor Zverovich e4575f33be Migrate to optional_field_ref Thrift API
Summary:
Migrate the code from accessing optional Thrift fields directly to a safer
`optional_field_ref` API. See https://fburl.com/safe for more details.

The output of this codemod has been reviewed in D13259011.

To preserve semantics, each unchecked access is replaced with an explicit call
to `value_unchecked()`. If you are sure that accessing a field is safe (the
field is marked as set), you can later replace `value_unchecked()` with
`value()` or dereferencing (`operator *`):

```
  ThriftStruct s = ...
- auto foo = s.foo_ref().value_unchecked();
+ auto foo = *s.foo_ref(); // will throw if s.foo is unset
```

drop-conflicts

Reviewed By: stevegury

Differential Revision: D15786632

fbshipit-source-id: 7c3f089dfa79597b189da6996cb76dcdbd5ed612
2019-06-13 08:54:34 -07:00
..
git eden: cmake fixup include directories and deps 2019-03-28 20:57:17 -07:00
hg fix some dependencies in the CMake files 2019-06-11 16:30:51 -07:00
mononoke Migrate to optional_field_ref Thrift API 2019-06-13 08:54:34 -07:00
test Get blob size from local store 2019-06-12 17:48:49 -07:00
BackingStore.h remove fallback for correcting empty files 2018-10-22 20:27:26 -07:00
BlobAccess.cpp add a BlobAccess API for stateless blob reading 2018-11-26 10:46:51 -08:00
BlobAccess.h add a BlobAccess API for stateless blob reading 2018-11-26 10:46:51 -08:00
BlobCache.cpp only evict when interest handle is dropped if blob wasn't reloaded 2018-12-10 19:30:28 -08:00
BlobCache.h only evict when interest handle is dropped if blob wasn't reloaded 2018-12-10 19:30:28 -08:00
BlobMetadata.h run clang-format across all C++ files 2017-11-03 16:02:03 -07:00
CMakeLists.txt fix some dependencies in the CMake files 2019-06-11 16:30:51 -07:00
Diff.cpp Future<T>::then Future<T>::then() -> Future<T>::thenValue or thenTry. 2018-09-14 17:10:57 -07:00
Diff.h add a function for diffing source control commits 2018-03-20 16:47:12 -07:00
eden_store_util.cpp add an option to open RocksDbLocalStore in read-only mode 2019-05-20 14:13:59 -07:00
EmptyBackingStore.cpp run clang-format across all C++ files 2017-11-03 16:02:03 -07:00
EmptyBackingStore.h run clang-format across all C++ files 2017-11-03 16:02:03 -07:00
IObjectStore.h clang-format 2018-10-02 10:07:38 -07:00
KeySpaces.h add a name field to LocalStore::KeySpaceRecord 2019-05-15 12:19:20 -07:00
LocalStore.cpp Get blob size from local store 2019-06-12 17:48:49 -07:00
LocalStore.h Get blob size from local store 2019-06-12 17:48:49 -07:00
MemoryLocalStore.cpp remove the config parameter from LocalStore 2019-05-15 12:19:20 -07:00
MemoryLocalStore.h remove the config parameter from LocalStore 2019-05-15 12:19:20 -07:00
ObjectStore.cpp Renamed functions to refer to blobs 2019-06-12 17:48:49 -07:00
ObjectStore.h Renamed functions to refer to blobs 2019-06-12 17:48:49 -07:00
RocksDbLocalStore.cpp add an option to open RocksDbLocalStore in read-only mode 2019-05-20 14:13:59 -07:00
RocksDbLocalStore.h add an option to open RocksDbLocalStore in read-only mode 2019-05-20 14:13:59 -07:00
SerializedBlobMetadata.cpp move SerializedBlobMetadata into its own file 2018-10-31 11:50:39 -07:00
SerializedBlobMetadata.h move SerializedBlobMetadata into its own file 2018-10-31 11:50:39 -07:00
SqliteLocalStore.cpp remove the config parameter from LocalStore 2019-05-15 12:19:20 -07:00
SqliteLocalStore.h remove the config parameter from LocalStore 2019-05-15 12:19:20 -07:00
StoreResult.cpp Enabled additional compiler warnings in Eden. 2018-06-01 11:39:01 -07:00
StoreResult.h Enabled additional compiler warnings in Eden. 2018-06-01 11:39:01 -07:00