mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-10-26 02:48:59 -04:00
Make cfgfile depth calculation thread friendly
This commit is contained in:
parent
e0a892f0d0
commit
c45c5ce920
2 changed files with 3 additions and 1 deletions
|
|
@ -46,6 +46,8 @@ constexpr static const char CACHE_FILES_PROCESS_NAMES_DEFAULT[] =
|
|||
|
||||
Config cfg;
|
||||
|
||||
thread_local int Config::CfgConfigFile::_depth = 0;
|
||||
|
||||
Config::CfgConfigFile::CfgConfigFile()
|
||||
{
|
||||
}
|
||||
|
|
|
|||
|
|
@ -95,7 +95,7 @@ public:
|
|||
{
|
||||
private:
|
||||
fs::path _cfg_file;
|
||||
int _depth = 0;
|
||||
static thread_local int _depth;
|
||||
|
||||
public:
|
||||
CfgConfigFile();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue