mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-10-26 19:01:56 -04:00
Add async message processing
This commit is contained in:
parent
c89fbde48d
commit
24423b8d2a
22 changed files with 1535 additions and 764 deletions
|
|
@ -95,16 +95,11 @@ set_kv_option(const std::string &key_,
|
|||
|
||||
static
|
||||
void
|
||||
set_threads(Config::Write &cfg_,
|
||||
fuse_args *args_)
|
||||
set_fuse_threads(Config::Write &cfg_,
|
||||
fuse_args *args_)
|
||||
{
|
||||
int threads;
|
||||
|
||||
threads = l::calculate_thread_count(cfg_->threads);
|
||||
|
||||
cfg_->threads = threads;
|
||||
|
||||
set_kv_option("threads",cfg_->threads.to_string(),args_);
|
||||
set_kv_option("read-thread-count",cfg_->fuse_read_thread_count.to_string(),args_);
|
||||
set_kv_option("process-thread-count",cfg_->fuse_process_thread_count.to_string(),args_);
|
||||
}
|
||||
|
||||
static
|
||||
|
|
@ -413,6 +408,6 @@ namespace options
|
|||
set_default_options(args_);
|
||||
set_fsname(cfg,args_);
|
||||
set_subtype(args_);
|
||||
set_threads(cfg,args_);
|
||||
set_fuse_threads(cfg,args_);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue