mirror of
https://github.com/facebook/sapling.git
synced 2024-10-08 07:49:11 +03:00
ab39bcc10f
Summary: If the root TreeInode wants to allocate inode numbers, the inode allocator must be initialized first. But complete InodeMap initialization requires the root TreeInode. So split this into two parts. Also, I changed the inode allocator to a single atomic increment instead of a lock acquisiton. Finally, the extra assertions in this diff uncovered what looks like a bug in the takeover logic where nextInodeNumber_ could end up being smaller than the value in the takeover data, since the max inode number from the overlay was assigned after loading from takeover data. Reviewed By: simpkins Differential Revision: D7107706 fbshipit-source-id: ec43cc81c11d709261598739c622609b372433a2 |
||
---|---|---|
.. | ||
cli | ||
docs | ||
fs | ||
hooks | ||
integration | ||
py | ||
scripts | ||
third-party | ||
AUTODEPS | ||
DEFS |