mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-12-01 20:36:37 -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
|
|
@ -688,8 +688,7 @@ int fuse_is_lib_option(const char *opt);
|
|||
*/
|
||||
int fuse_main_real(int argc, char *argv[], const struct fuse_operations *op, size_t op_size);
|
||||
|
||||
int fuse_start_maintenance_thread(struct fuse *fuse);
|
||||
void fuse_stop_maintenance_thread(struct fuse *fuse);
|
||||
void fuse_populate_maintenance_thread(struct fuse *fuse);
|
||||
|
||||
int fuse_log_metrics_get(void);
|
||||
void fuse_log_metrics_set(int enabled);
|
||||
|
|
|
|||
13
libfuse/include/maintenance_thread.hpp
Normal file
13
libfuse/include/maintenance_thread.hpp
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
#pragma once
|
||||
|
||||
#include <functional>
|
||||
#include <vector>
|
||||
|
||||
|
||||
class MaintenanceThread
|
||||
{
|
||||
public:
|
||||
static void setup();
|
||||
static void stop();
|
||||
static void push_job(const std::function<void(int)> &func);
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue