mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 08:47:12 +03:00
0c8f577cd8
Summary: In some workloads we're seeing folks run out of file descriptors. We forgot that we'd taken out the code that closes the underlying fds. This diff takes a run at adding a simple counter of the open file handle objects that is incremented when they are constructed and decremented when they are destroyed. When the count falls to zero we release the file handle. Note that we unconditionally open files when we first load the inodes from the overlay. I tried to defer that open attempt and it broke the timestamp overlay test. I think we can revisit that aspect in a follow on diff; for now we should be more resilient to transiently opened files from things like ripgrep or similar. Reviewed By: simpkins Differential Revision: D6097090 fbshipit-source-id: 9a48220002e760fb1ffb8d7e2a68fa7036558b78 |
||
---|---|---|
.. | ||
cli | ||
docs | ||
fs | ||
hooks | ||
integration | ||
py | ||
scripts | ||
DEFS |