sapling/eden/fs
Victor Zverovich 1a562484b1 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
```

Reviewed By: fanzeyi

Differential Revision: D15078040

fbshipit-source-id: 8ef270e8c687535e9d4aa2208beff4517e121814
2019-04-25 09:24:22 -07:00
..
benchharness standardize some of the benchmark infrastructure 2018-11-13 15:27:50 -08:00
config build several targets on mac and run 5 test suites 2019-04-18 19:36:20 -07:00
fuse eden: adjust volume name on macos 2019-04-17 12:54:51 -07:00
inodes stat time portability for tests 2019-04-24 14:15:08 -07:00
journal Add assorted missing includes 2019-03-07 00:13:47 -08:00
model fix a size_t format specifier to snprintf() 2019-04-10 15:41:35 -07:00
rocksdb move some logic from RocksHandles to RocksDbLocalStore 2019-04-24 20:03:57 -07:00
service rename eden_gc to eden_store_util 2019-04-24 20:03:57 -07:00
sqlite avoid leaking the sqlite3 db if we fail to open it 2018-06-20 16:36:22 -07:00
store Migrate to optional_field_ref Thrift API 2019-04-25 09:24:22 -07:00
takeover AsyncServerSocket::AcceptCallback::connectionAccepted to NetworkSocket (attempt #2) 2019-04-10 15:01:32 -07:00
testharness build testharness on mac 2019-04-18 19:36:19 -07:00
tracing build several targets on mac and run 5 test suites 2019-04-18 19:36:20 -07:00
utils stat time portability for tests 2019-04-24 14:15:08 -07:00
CMakeLists.txt eden: add simple install rule for the cmake build 2019-03-29 15:02:04 -07:00