-
Notifications
You must be signed in to change notification settings - Fork 358
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace hardlink storage in rpmfi with STL
This is a fairly tricksy one, the old structure had a manual refcount doubling up as the number of file links, and the file index array as a flexible array at the end of the struct. Replace the manual reference count with a shared_ptr smart pointer that gets deleted along with the vector itself, which gets deleted along with the nlink hash itself. Couple of typedefs to tame the rather verbose types...
- Loading branch information
Showing
1 changed file
with
17 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters