mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 07:17:55 +03:00
4dc59b856b
Summary: This updates the `EdenServer` class so that the existing `getMount()` and `getMountPoints()` APIs only return mounts that have finished initializing. These APIs are primarily used by the thrift interfaces. In most cases the callers did not intend to operate on mounts that were still initializing, and doing so was unsafe. The code could potentially dereference a null pointer if it tried to access the mount's root inode before the root inode object had been created. New `getMountUnsafe()` and `getAllMountPoints()` APIs have been added for call sites that explicitly want to be able to access mounts that may still be initializing. Currently the `listMounts()` thrift API is the only location that needs this. Reviewed By: strager Differential Revision: D13981139 fbshipit-source-id: e6168d7a15694c79ca2bcc129dda46f82382e8e9 |
||
---|---|---|
.. | ||
fs | ||
lib/datapack | ||
.clang-format | ||
.gitignore | ||
eden.sln |