Mercurial > hg > orthanc-databases
diff Framework/Plugins/IndexBackend.cpp @ 221:73cc85f3d9c1
implementation of the "serverIdentifier" information for global properties
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 30 Mar 2021 10:40:34 +0200 |
parents | 492aa3edf572 |
children | c8e06b41feec |
line wrap: on
line diff
--- a/Framework/Plugins/IndexBackend.cpp Mon Mar 29 16:39:20 2021 +0200 +++ b/Framework/Plugins/IndexBackend.cpp Tue Mar 30 10:40:34 2021 +0200 @@ -1034,9 +1034,11 @@ bool IndexBackend::LookupGlobalProperty(std::string& target /*out*/, + const char* serverIdentifier, int32_t property) { - return ::OrthancDatabases::LookupGlobalProperty(target, manager_, static_cast<Orthanc::GlobalProperty>(property)); + return ::OrthancDatabases::LookupGlobalProperty(target, manager_, serverIdentifier, + static_cast<Orthanc::GlobalProperty>(property)); } @@ -1289,10 +1291,12 @@ } - void IndexBackend::SetGlobalProperty(int32_t property, + void IndexBackend::SetGlobalProperty(const char* serverIdentifier, + int32_t property, const char* value) { - return ::OrthancDatabases::SetGlobalProperty(manager_, static_cast<Orthanc::GlobalProperty>(property), value); + return ::OrthancDatabases::SetGlobalProperty( + manager_, serverIdentifier, static_cast<Orthanc::GlobalProperty>(property), value); } @@ -1446,7 +1450,7 @@ std::string version = "unknown"; - if (LookupGlobalProperty(version, Orthanc::GlobalProperty_DatabaseSchemaVersion)) + if (LookupGlobalProperty(version, MISSING_SERVER_IDENTIFIER, Orthanc::GlobalProperty_DatabaseSchemaVersion)) { try {