Track Configuration.Concurrency modifications

This commit is contained in:
Alexander A. Klimov 2023-05-11 15:41:35 +02:00
parent c953ba1206
commit 8fb5d53118
2 changed files with 3 additions and 0 deletions

View File

@ -13,6 +13,7 @@ String Configuration::ApiBindPort{"5665"};
bool Configuration::AttachDebugger{false};
String Configuration::CacheDir;
int Configuration::Concurrency{static_cast<int>(std::thread::hardware_concurrency())};
bool Configuration::ConcurrencyWasModified{false};
String Configuration::ConfigDir;
String Configuration::DataDir;
String Configuration::EventEngine;
@ -101,6 +102,7 @@ int Configuration::GetConcurrency() const
void Configuration::SetConcurrency(int val, bool suppress_events, const Value& cookie)
{
HandleUserWrite("Concurrency", &Configuration::Concurrency, val, m_ReadOnly);
Configuration::ConcurrencyWasModified = true;
}
String Configuration::GetConfigDir() const

View File

@ -118,6 +118,7 @@ public:
static bool AttachDebugger;
static String CacheDir;
static int Concurrency;
static bool ConcurrencyWasModified;
static String ConfigDir;
static String DataDir;
static String EventEngine;