mirror of
https://github.com/mhx/dwarfs.git
synced 2025-09-13 14:27:30 -04:00
refactor: narrow scope of scanner worker group
This commit is contained in:
parent
ccfd97bf80
commit
3d545e9882
@ -839,7 +839,6 @@ int mkdwarfs_main(int argc, sys_char** argv, iolayer const& iol) {
|
||||
worker_group wg_compress("compress", num_workers,
|
||||
std::numeric_limits<size_t>::max(),
|
||||
compress_niceness);
|
||||
worker_group wg_scanner("scanner", num_scanner_workers);
|
||||
|
||||
options.num_segmenter_workers = num_segmenter_workers;
|
||||
|
||||
@ -1272,6 +1271,8 @@ int mkdwarfs_main(int argc, sys_char** argv, iolayer const& iol) {
|
||||
auto sf = std::make_shared<segmenter_factory>(
|
||||
lgr, prog, options.inode.categorizer_mgr, sf_config);
|
||||
|
||||
worker_group wg_scanner("scanner", num_scanner_workers);
|
||||
|
||||
scanner s(lgr, wg_scanner, std::move(sf), entry_factory::create(), iol.os,
|
||||
std::move(script), options);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user