Mercurial > hg > orthanc
diff OrthancServer/Sources/ServerContext.cpp @ 5817:272b0d0eef38 find-refactoring
ReadOnly mode continued
author | Alain Mazy <am@orthanc.team> |
---|---|
date | Thu, 26 Sep 2024 17:23:43 +0200 |
parents | b4e7a85cde80 |
children |
line wrap: on
line diff
--- a/OrthancServer/Sources/ServerContext.cpp Mon Sep 23 16:03:02 2024 +0200 +++ b/OrthancServer/Sources/ServerContext.cpp Thu Sep 26 17:23:43 2024 +0200 @@ -406,7 +406,14 @@ new SharedArchive(lock.GetConfiguration().GetUnsignedIntegerParameter("MediaArchiveSize", 1))); defaultLocalAet_ = lock.GetConfiguration().GetOrthancAET(); jobsEngine_.SetWorkersCount(lock.GetConfiguration().GetUnsignedIntegerParameter("ConcurrentJobs", 2)); + saveJobs_ = lock.GetConfiguration().GetBooleanParameter("SaveJobs", true); + if (readOnly_ && saveJobs_) + { + LOG(WARNING) << "READ-ONLY SYSTEM: SaveJobs = true is incompatible with a ReadOnly system, ignoring this configuration"; + saveJobs_ = false; + } + metricsRegistry_->SetEnabled(lock.GetConfiguration().GetBooleanParameter("MetricsEnabled", true)); // New configuration options in Orthanc 1.5.1