mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 08:47:12 +03:00
00b9a04aa1
Summary: Rename `getRefcount()` to `debugGetFuseRefcount()` to make it clear that this returns the FUSE reference count rather than the pointer refcount, and that the result should not be used for anything other than debugging or diagnostic purposes. There is already a `getFuseRefcount()` method to check the FUSE refcount while the inode is being unloaded. The only time it is safe to check the FUSE refcount for programmatic purposes, and `getFuseRefcount()` has a `DCHECK()` to help ensure that this is the only time it is called. (`getFuseRefcount()` also predates `getRefcount()`, which was added for the `eden debug inode` command in D5277870.) Reviewed By: chadaustin Differential Revision: D7555997 fbshipit-source-id: e66f2b3d2b9eb14f8f8878d78978851929198a31 |
||
---|---|---|
.. | ||
cli | ||
docs | ||
fs | ||
hooks | ||
integration | ||
py | ||
scripts | ||
third-party | ||
AUTODEPS | ||
DEFS |