mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-11-22 07:56:32 -05:00
Update the secondary group cache (#1492)
* Use concurrent_flat_map to build a global cache rather than per thread. * Create global maintanence thread manager for clearing unused cache entries.
This commit is contained in:
parent
9e626228be
commit
f852474073
17 changed files with 342 additions and 246 deletions
|
|
@ -28,8 +28,6 @@ namespace ugid
|
|||
initgroups(const uid_t uid_,
|
||||
const gid_t gid_)
|
||||
{
|
||||
static thread_local GIDCache cache;
|
||||
|
||||
cache.initgroups(uid_,gid_);
|
||||
GIDCache::initgroups(uid_,gid_);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue