Mercurial > hg > orthanc
diff OrthancServer/Sources/main.cpp @ 4604:2c702cfae274 db-changes
New option "DatabaseServerIdentifier" to identify the server among a pool of Orthanc servers
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 30 Mar 2021 10:39:59 +0200 |
parents | 350a22c094f2 |
children | de5e6b04442d |
line wrap: on
line diff
--- a/OrthancServer/Sources/main.cpp Wed Mar 24 15:30:06 2021 +0100 +++ b/OrthancServer/Sources/main.cpp Tue Mar 30 10:39:59 2021 +0200 @@ -1505,7 +1505,13 @@ std::unique_ptr<IStorageArea> storage; #if ORTHANC_ENABLE_PLUGINS == 1 - OrthancPlugins plugins; + std::string databaseServerIdentifier; + { + OrthancConfiguration::ReaderLock lock; + databaseServerIdentifier = lock.GetConfiguration().GetDatabaseServerIdentifier(); + } + + OrthancPlugins plugins(databaseServerIdentifier); plugins.SetCommandLineArguments(argc, argv); LoadPlugins(plugins);