mirror of
https://github.com/facebook/sapling.git
synced 2024-10-09 00:14:35 +03:00
a598e8c334
Summary: This updates the InodePtr and InodeBase code to actually implement Inode unloading and destruction. At the moment we keep Inode objects as long as possible, and only unload them during shutdown, or when the last reference to an unlinked inode goes away. However, it should be straightforward to add on-demand unloading in the future for Inodes that have not been accessed in a while. The TreeInode::unloadChildrenNow() function provides a template for what this would look like (it would simply need to be changed to check an access time when doing on-demand unloading). Reviewed By: wez Differential Revision: D4360765 fbshipit-source-id: a46b355f0ac0c25f873a156e62af5184317de735 |
||
---|---|---|
.. | ||
test | ||
Dirstate.cpp | ||
Dirstate.h | ||
DirstatePersistence.cpp | ||
DirstatePersistence.h | ||
EdenDispatcher.cpp | ||
EdenDispatcher.h | ||
EdenMount.cpp | ||
EdenMount.h | ||
EdenMounts.cpp | ||
EdenMounts.h | ||
FileData.cpp | ||
FileData.h | ||
FileHandle.cpp | ||
FileHandle.h | ||
FileInode.cpp | ||
FileInode.h | ||
InodeBase.cpp | ||
InodeBase.h | ||
InodeError.cpp | ||
InodeError.h | ||
InodeMap.cpp | ||
InodeMap.h | ||
InodePtr-defs.h | ||
InodePtr.cpp | ||
InodePtr.h | ||
InodePtrFwd.h | ||
Overlay.cpp | ||
Overlay.h | ||
overlay.thrift | ||
ParentInodeInfo.h | ||
TARGETS | ||
TreeInode.cpp | ||
TreeInode.h | ||
TreeInodeDirHandle.cpp | ||
TreeInodeDirHandle.h |