Mercurial > hg > orthanc
comparison 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 |
comparison
equal
deleted
inserted
replaced
4603:c125bfd31023 | 4604:2c702cfae274 |
---|---|
1503 { | 1503 { |
1504 std::unique_ptr<IDatabaseWrapper> databasePtr; | 1504 std::unique_ptr<IDatabaseWrapper> databasePtr; |
1505 std::unique_ptr<IStorageArea> storage; | 1505 std::unique_ptr<IStorageArea> storage; |
1506 | 1506 |
1507 #if ORTHANC_ENABLE_PLUGINS == 1 | 1507 #if ORTHANC_ENABLE_PLUGINS == 1 |
1508 OrthancPlugins plugins; | 1508 std::string databaseServerIdentifier; |
1509 { | |
1510 OrthancConfiguration::ReaderLock lock; | |
1511 databaseServerIdentifier = lock.GetConfiguration().GetDatabaseServerIdentifier(); | |
1512 } | |
1513 | |
1514 OrthancPlugins plugins(databaseServerIdentifier); | |
1509 plugins.SetCommandLineArguments(argc, argv); | 1515 plugins.SetCommandLineArguments(argc, argv); |
1510 LoadPlugins(plugins); | 1516 LoadPlugins(plugins); |
1511 | 1517 |
1512 IDatabaseWrapper* database = NULL; | 1518 IDatabaseWrapper* database = NULL; |
1513 if (plugins.HasDatabaseBackend()) | 1519 if (plugins.HasDatabaseBackend()) |