comparison OrthancServer/Sources/main.cpp @ 5455:176bc05f85f4 pg-transactions

DB: new Capabilities class to manage future new methods from DB plugins + Added IncrementGlobalProperty
author Alain Mazy <am@osimis.io>
date Thu, 07 Dec 2023 12:04:11 +0100
parents 9ffd6d18daf3
children 46ed738c3e5d
comparison
equal deleted inserted replaced
5454:099d45f49fe1 5455:176bc05f85f4
1641 1641
1642 OrthancConfiguration::ReaderLock lock; 1642 OrthancConfiguration::ReaderLock lock;
1643 1643
1644 if (lock.GetConfiguration().GetBooleanParameter(CHECK_REVISIONS, false)) 1644 if (lock.GetConfiguration().GetBooleanParameter(CHECK_REVISIONS, false))
1645 { 1645 {
1646 if (database.HasRevisionsSupport()) 1646 if (database.GetDatabaseCapabilities().HasRevisionsSupport())
1647 { 1647 {
1648 LOG(INFO) << "Handling of revisions is enabled, and the custom database back-end *has* " 1648 LOG(INFO) << "Handling of revisions is enabled, and the custom database back-end *has* "
1649 << "support for revisions of metadata and attachments"; 1649 << "support for revisions of metadata and attachments";
1650 } 1650 }
1651 else 1651 else
1664 "\", but won't work properly for attachments if \"" + std::string(STORE_MD5) + "\" is set to \"false\""); 1664 "\", but won't work properly for attachments if \"" + std::string(STORE_MD5) + "\" is set to \"false\"");
1665 } 1665 }
1666 } 1666 }
1667 } 1667 }
1668 1668
1669 if (!database.HasLabelsSupport()) 1669 if (!database.GetDatabaseCapabilities().HasLabelsSupport())
1670 { 1670 {
1671 LOG(WARNING) << "The custom database back-end has *no* support for labels"; 1671 LOG(WARNING) << "The custom database back-end has *no* support for labels";
1672 } 1672 }
1673 1673
1674 bool success = ConfigureServerContext(database, storageArea, plugins, loadJobsFromDatabase); 1674 bool success = ConfigureServerContext(database, storageArea, plugins, loadJobsFromDatabase);