Mercurial > hg > orthanc
diff OrthancServer/Sources/ServerContext.cpp @ 4607:f75c63aa9de0 db-changes
differentiating between shared and private global properties
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 30 Mar 2021 18:10:27 +0200 |
parents | a3c6678aa7b1 |
children | 95ffe3b6ef7c |
line wrap: on
line diff
--- a/OrthancServer/Sources/ServerContext.cpp Tue Mar 30 16:34:23 2021 +0200 +++ b/OrthancServer/Sources/ServerContext.cpp Tue Mar 30 18:10:27 2021 +0200 @@ -215,7 +215,7 @@ if (loadJobsFromDatabase) { std::string serialized; - if (index_.LookupGlobalProperty(serialized, GlobalProperty_JobsRegistry)) + if (index_.LookupGlobalProperty(serialized, GlobalProperty_JobsRegistry, false /* not shared */)) { LOG(WARNING) << "Reloading the jobs from the last execution of Orthanc"; @@ -261,7 +261,7 @@ std::string serialized; Toolbox::WriteFastJson(serialized, value); - index_.SetGlobalProperty(GlobalProperty_JobsRegistry, serialized); + index_.SetGlobalProperty(GlobalProperty_JobsRegistry, false /* not shared */, serialized); } catch (OrthancException& e) {