Rework thread pool for increased stability + config and doc updates (#1453)

Also updates fmt to 11.2.0 and replaced syslog usage with a wrapper
leveraging fmt.
This commit is contained in:
trapexit 2025-05-05 18:28:49 -05:00 • committed by GitHub
parent 455a81290b
commit 344014aa81
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
58 changed files with 9097 additions and 24020 deletions

View file

@ -135,13 +135,13 @@ _wait_for_mount(const struct stat &src_st_,
for(const auto &path : successes)
{
tgt_paths.erase(path);
syslog_info("%s is mounted",path.c_str());
SysLog::info("{} is mounted",path.string());
}
if(first_loop)
{
for(const auto &path : failures)
syslog_notice("%s is not mounted, waiting",path.c_str());
SysLog::notice("{} is not mounted, waiting",path.string());
first_loop = false;
}
@ -150,7 +150,7 @@ _wait_for_mount(const struct stat &src_st_,
}
for(auto const &path : failures)
syslog_notice("%s not mounted within timeout",path.c_str());
SysLog::notice("{} not mounted within timeout",path.string());
return failures.size();
}
@ -165,9 +165,9 @@ fs::wait_for_mount(const fs::Path &src_path_,
rv = fs::stat(src_path_,&src_st);
if(rv == -1)
syslog_error("Error stat'ing mount path: %s (%s)",
src_path_.c_str(),
strerror(errno));
SysLog::error("Error stat'ing mount path: {} ({})",
src_path_.string(),
strerror(errno));
return ::_wait_for_mount(src_st,tgt_paths_,timeout_);
}